IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port
$mail->Username = "gtrac.service@gmail.com"; // GMAIL username
$mail->Password = "gtrac@12345"; // GMAIL password
//$mail->Username = "anoop@g-trac.in"; // GMAIL username
// $mail->Password = "omsairam"; // GMAIL password
$mail->From = "gtrac.service@gmail.com";
$mail->FromName = "G-trac";
//$mail->Body = $message;//HTML Body
$mail->AltBody = ""; //Text Body
$mail->WordWrap = 50; // set word wrap
$mail->AddReplyTo("priya@g-trac.in","G-trac");
$mail->IsHTML(true);
$mail->Subject = $Subject;
$file_path = 'http://203.115.101.51/newtracking/testing/need4.jpg';
echo $msg = '
|
OUR SOLUTION WILL HELP YOU
Contact us : 9560177115
|
|
';
//echo "sdfsdf";
//$arremail1=explode(",",$email);
//print_r($arremail1);die();
/*for($ec=0;$ecAddAddress($arremail1[$ec],$arremail1[$ec]);
}*/
//$mail->AddAddress($email,"email");
$mail->AddAddress("anuj@g-trac.in","Anuj");
$mail->AddAddress("priya@g-trac.in","Priya");
$mail->IsHTML(true);
//$mail->AddAttachment(__DOCUMENT_ROOT . '/reports/excel_reports/IdleMahaveera' . date("Y-m-d") . ".xls", 'IdleDaily_Report.xls');
$mail->AddEmbeddedImage($file_path, "my-attach", $file_path);
$mail->Body = $msg . "
Thanks
Auto Alert Team";
//$mail->AddAttachment($file_path, 'impage.jpg');
$mail->Send();
$mail->ClearAddresses();
$mail->ClearAttachments();
?>