0xV3NOMx
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.129.216.248


Current Path : /var/www/html/gug/Report_details/
Upload File :
Current File : /var/www/html/gug/Report_details/cManualMailer.php

<?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->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 */

	// $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;
	 
	}
 
?>