为什么密码恢复收入消息来自未知发件人

时间:2015-06-10 11:29:05

标签: php

我的PHP代码为休息密码收入消息附带未知的发件人,它没有显示我的域名显示其他东西(a2plcpnl0185.prod.iad2.secureserver.net),如果有人现在如何解决这个请与我分享谢谢,这是我的服务器端代码

 $email = $_POST['email'];

  $newpassword = $_POST['newpas'];


  $hash = $db->hashSSHA($newpassword);
    $encrypted_password = $hash["encrypted"]; // encrypted password
    $salt = $hash["salt"];
  $subject = "Change Password Notification";
     $message = "Hello User,\n\nYour Password is sucessfully     changed.\n\nRegards,\App.\nwww.-----.com";
      $from = "----@gmail.com";
      $headers = "From:" . $from;
if ($db->isUserExisted($email)) {

 $user = $db->forgotPassword($email, $encrypted_password, $salt);
if ($user) {
     $response["success"] = 1;
      mail($email,$subject,$message,$headers);
     echo json_encode($response);
}
else {
$response["error"] = 1;
echo json_encode($response);
}

0 个答案:

没有答案