GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

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) {
}
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'])) {
......
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