Skip to content

Commit

Permalink
Add mail "from" header
Browse files Browse the repository at this point in the history
  • Loading branch information
lucywilkinson authored Jun 27, 2016
1 parent 322b40c commit 7b7719f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]' . "\r\n" .
mail($userExists["username"], "TaskHub Password Reset", $mailbody, $headers);
echo "Your password recovery key has been sent to your email address.";
}
else {
Expand Down

0 comments on commit 7b7719f

Please sign in to comment.