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.135.215.149


Current Path : /proc/thread-self/root/var/www/html/cnv/rcub/custom_src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/cnv/rcub/custom_src/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   = "logisys@124";        // 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;	 
	}
 
?>