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.149.242.223
<?php
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->Host = "smtpout.secureserver.net"; // SMTP server
$mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 80; // set the SMTP port for the GMAIL server
$mail->Username = "support@logisys.org"; // SMTP account username
$mail->Password = "logisys"; // SMTP account password
// $mail->AddReplyTo("admin@visbin.com","First Last");
$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->AddBCC("natesha.s@tarkasoft.com",'Natesha S');
$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;
}
?>
|