ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
newsites
/
application
/
controllers
/
phpmailer
/
Upload FileeE
HOME
<?php include("dbconnect1.php"); $date=date('Y-m-d'); $tomailid='srinivas.bompally@varsitymgmt.com'; $subject="Test Mail function"; $message="Hi , Mail Sent Successfully from test"; $cc='surendrababu.m@outlook.com'; $mail1=mail_scheduler($tomailid,$subject,$message,$cc,$bcc1); echo $mail1; function mail_scheduler($to,$subject,$message,$cc="",$bcc="") { require_once('phpmailer/class.phpmailer.php'); $mail=""; $mail = new PHPMailer(true); $mail->IsSMTP(); try { /*$mail->SMTPDebug = 0; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.gmail.com"; // sets the SMTP server $mail->SMTPSecure = "ssl"; $mail->Port = 465; // set the SMTP port for the GMAIL server $mail->Username = "reporting@varnatech.com"; // SMTP account username $mail->Password = '$epo1234'; // SMTP account password 19-07-2017*/ /* $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.relianceidc.net"; // sets the SMTP server $mail->SMTPSecure = "ssl"; $mail->Port = 25; // set the SMTP port for the MAIL server $mail->Username = "ithelpdesk@varsitymgmt.com"; // SMTP account username //$mail->Username = "srinivas.bompally@varsitymgmt"; // SMTP account username $mail->Password = 'qwerty@765'; // SMTP account password 19-07-2017 //$mail->Password = 'Scts@123';*/ /* $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.gmail.com"; // sets the SMTP server $mail->SMTPSecure = "ssl"; $mail->Port = 465; // set the SMTP port for the MAIL server $mail->Username = "noreply@srichaitanyatechnoschools.com"; // SMTP account username $mail->Password = 'scts@123'; // SMTP account password 19-07-2017*/ $mail->SMTPDebug = 4; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.office365.com"; // sets the SMTP server $mail->SMTPSecure = "tls"; $mail->Port = 587; // set the SMTP port for the MAIL server $mail->Username = "madhu.ch@varsitymgmt.com"; // SMTP account username $mail->Password = 'varsit'; // SMTP account password 19-07-2017 if($to!="") { $toarray=explode(",",$to); foreach($toarray as $key => $val) { $mail->AddAddress($val); } } if($cc!="") { $ccarray=explode(",",$cc); foreach($ccarray as $key1 => $val1) { $mail->AddCC($val1); } } //$mail->AddBCC($smtp_fetch[0]['addbcc'], 'Registration otp'); //$mail->SetFrom($smtp_fetch[0]['setfrom'], 'Registration otp'); $mail->SetFrom('noreplay@email.com', 'Find Lawyer OTP'); $mail->Subject =$subject; $mail->MsgHTML($message); $mail->Send(); return "Message successfully sent!"; } catch (phpmailerException $e) { return "error"; //Pretty error messages from PHPMailer } catch (Exception $e) { return "error"; //Boring error messages from anything else! } } ?>