From 7b7719f5035bbe68d1268f5fa27388342eaf61da Mon Sep 17 00:00:00 2001 From: lucywilkinson Date: Mon, 27 Jun 2016 03:20:57 -0600 Subject: [PATCH] Add mail "from" header --- Change.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Change.php b/Change.php index 4362262..c62638f 100644 --- a/Change.php +++ b/Change.php @@ -45,7 +45,8 @@ //Mail reset link $mailbody = "Dear user,\n\nIt appears that you have requested a password reset at TaskHub\n\nTo reset your password, please click the link below. If you cannot click it, please paste it into your web browser's address bar.\n\n" . $pwrurl . "\n\nThanks,\nThe Administration"; - mail($userExists["username"], "TaskHub Password Reset", $mailbody); + $headers = 'From: webmaster@taskhub.com' . "\r\n" . + mail($userExists["username"], "TaskHub Password Reset", $mailbody, $headers); echo "Your password recovery key has been sent to your email address."; } else {