Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.15.237.229
<?php
/* ini_set("memory_limit",-1);
ini_set('max_execution_time', 1400);
ini_set("display_errors","On");
require_once(dirname(dirname(__FILE__)).'/phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
//$mail->IsSMTP(); // telling the class to use SMTP
$mail->Mailer = "smtp";
$mail->SMTPSecure = 'ssl';
$mail->Host = "smtp.zoho.com";
$mail->Port = 465;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "sandeep.n@logisys.org"; // SMTP username
$mail->Password = "sandeep23"; // SMTP password
$mail->From = "sandeep.n@logisys.org";
$mail->AddAddress("sandeepmurthy406@gmail.com");
$mail->Subject = "First PHPMailer Message";
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap = 50;
if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';
} */
function send_manual_mailold($to,$subject,$message,$replay_to=null,$cc=null,$bcc=null)
{
require_once(dirname(dirname(__FILE__)).'/phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPSecure = "ssl";
$mail->Mailer = "smtp";
$mail->Host = "smtp.zoho.com"; // SMTP server
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "sandeep.n@logisys.org"; // SMTP account username
$mail->Password = "sandeep23"; // SMTP account password */
/* $to_arr=explode(",",$to);
foreach($to_arr as $v)
{
if(!empty($v))
$mail->AddAddress($v);
} */
$mail->From = "sandeep.n@logisys.org";
$mail->AddAddress($to);
$mail->Body = $message;
$mail->WordWrap = 50;
if(!$mail->Send())
{
$data="Message was not sent Mailer Error: " . $mail->ErrorInfo;
}
else
{
$data='true';
}
return $data;
}
function send_manual_mail($to,$subject,$message,$replay_to=null,$cc=null,$bcc=null)
{
require_once(dirname(dirname(__FILE__)).'/phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPSecure = "ssl";
$mail->Mailer = "smtp";
$mail->Host = "smtp.zoho.com"; // SMTP server
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "support@logisys.org"; // SMTP account username
$mail->Password = "logisys124"; // SMTP account password */
$to_arr=explode(",",$to);
foreach($to_arr as $v)
{
if(!empty($v))
$mail->AddAddress($v,$v);
}
$cc_arr=explode(",",$cc);
foreach($cc_arr as $v)
{
if(!empty($v))
$mail->AddCC($v,$v);
}
$mail->AddReplyTo("support@logisys.org","support@logisys.org");
$mail->SetFrom('support@logisys.org', 'support@logisys.org');
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = $subject;
$mail->Body = $message;
$mail->AltBody = $message;
if(!$mail->Send())
{
$data="Message was not sent Mailer Error: " . $mail->ErrorInfo;
}
else
{
$data='true';
}
return $data;
}
echo send_manual_mail('sandeepmurthy406@gmail.com','test','test dasdasd');
?>
|