<?php 
//$id = 5;
//$token = '67a05e3822ce48a6386746388e6c81f5';
//$to      = 'rakesh.virasat@gmail.com';
$subject = 'Arrupe Password Confirmation';
//$message = 'testing mail of arrupe server';
// message
$message = '
<html>
<head>
  <title>Confirm Password Change</title>
</head>
<body>
  <p> <p>Please Click on the <a href=https://arrupe.ac.zw/acis/ais/modules/mod_ssetup/pswd_upd.php?token='.$token.'><strong>Confirm</strong></a> 
  link to confirm  your new password.</p>
   
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Arrupe University <acistest@mail.arrupe.ac.zw>' . "\r\n";
//$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
//$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
//$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

if(mail($to, $subject, $message, $headers)){
	$mail_res = true;
} else {
	$mail_res = false;
}


?>