Set Content-type header when sending UTF-8 mails

Fixes FS#38568.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-02-10 20:57:16 +01:00
parent 16c3a86193
commit 94a4f597ff
2 changed files with 12 additions and 4 deletions

View file

@ -652,7 +652,9 @@ function send_resetkey($email, $body) {
$body .= "\n\n".
"{$AUR_LOCATION}/" . get_uri('/passreset/') . "?".
"resetkey={$resetkey}";
$headers = "Reply-to: nobody@archlinux.org\r\n" .
$headers = "MIME-Version: 1.0\r\n" .
"Content-type: text/plain; charset=UTF-8\r\n";
"Reply-to: nobody@archlinux.org\r\n" .
"From: aur-notify@archlinux.org\r\n" .
"X-Mailer: PHP\r\n" .
"X-MimeOLE: Produced By AUR";