git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit b5d26fd4 authored by Matt Lee's avatar Matt Lee

send email from a real email address

parent 4d10584c
...@@ -33,7 +33,16 @@ if ($registration_disabled == true) { ...@@ -33,7 +33,16 @@ if ($registration_disabled == true) {
} }
function sendEmail($to, $subject, $message) { function sendEmail($to, $subject, $message) {
mail($to, $subject, $message);
$foo = parse_url($base_url);
$domain = $foo['host'];
$headers = 'From: do-not-reply@' . $domain . "\r\n" .
'Reply-To: do-not-reply@' . $domain . "\r\n" .
'X-Mailer: GNU FM';
mail($to, $subject, $message, $headers);
} }
if (isset($_GET['auth'])) { if (isset($_GET['auth'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment