function sendmail($email, $pass) {
//$to = $email;
$status = false;
$to = "zuhair-test1@localhost.com";
$subject = 'Password Recovery';
$message = 'Your new temporary password is : ' . $pass;
$headers = 'From: admin@test.com' . "\r\n" .
'Reply-To: admin@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (mail($to, $subject, $message, $headers)) {
$status = true;
}
return $status;
}
No comments:
Post a Comment