Current Path : /var/www/html/social/
Upload File :
Current File : /var/www/html/social/raj_test.php

<?php
function send_mails_365hops_new222($to,$message,$subject)
     {
 /* $to_arr=array();   
  array_push($to_arr,$to);
  $cc_arr='';
  $bcc_arr='';
  $text='';
  $html=$message; 
  send_email_api($to_arr,$cc_arr,$bcc_arr,$subject,$text,$html);*/
  require_once("../raj_emails/phpmailer/class.phpmailer.php"); 
$account="info@365hops.com";
$password="firki12345";
$to=$to;//"rajkumar3883@gmail.com";
$from="info@365hops.com";
$from_name="365Hops";
$msg=$message; // HTML message
$subject=$subject;//"HTML message";
/*End Config*/
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->CharSet = 'UTF-8';
$mail->Host = "smtp.live.com";
$mail->SMTPAuth= true;
$mail->Port = 587;
$mail->Username= $account;
$mail->Password= $password;
$mail->SMTPSecure = 'tls';
$mail->From = $from;
$mail->FromName= $from_name;
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $msg;
$mail->addAddress($to);
if(!$mail->send()){
echo "Mailer Error: " . $mail->ErrorInfo;
}else{
 echo "E-Mail has been sent";
}
 }	

   $to33='rajkumar3883@gmail.com';
	$subject2='New booking confirmation on 365hops.com';
	
	$url='/social/event_detail.php?eventid=1000';
	 $message='<table><tr><td><strong>Hey Dear,</strong><span style="float:none; padding-left:100px;"><img src="'.$protocol.'www.365hops.com/images/blue_logo365.png" height="91" width="200" /></span><br/><br/>
               <p style="font-size:14px; font-family:arial">fff has booked an event <a href="'.$url.'" >sdsd</a> on 365hops.com.	
                </p><br/><br/>
                Hope to see you around :-)
                <br/><br/></p>Thank you,<br/>
               <strong>Team 365Hops</strong>
               </td></tr>
               </table>';
	     	send_mails_365hops_new222($to33,$message,$subject2);


?>

,