MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/.trash/backup/timeoffice/mail.php
<?php
		require('../phpmailer/class.phpmailer.php');
		$custemail="";
		$mail = new PHPMailer();
		$mail->IsSMTP();
		$mail->Host = "smtp.gmail.com"; // Your SMTP PArameter
		$mail->Port = 587; // Your Outgoing Port
		$mail->SMTPAuth = true; // This Must Be True
		$mail->Username = ""; // Your Email Address
		$mail->Password = ""; // Your Password
		$mail->SMTPSecure = 'tls'; // Check Your Server's Connections for TLS or SSL
		$mail->From = '';
		$mail->FromName = '';
		$mail->AddAddress($custemail);
		$mail->IsHTML(true);
		$mail->Subject="Unpunched Info";
		$mail->Body = $html;
		$mail=$mail->Send();
		echo json_encode(array('sts' => TRUE, 'mode' =>"Mail sent Successfully"));
	}else{
		echo json_encode(array('sts' => False, 'mode' =>"Server Error!"));
	}
	
?>