diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-10 20:57:16 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-02-10 21:00:36 +0100 |
commit | 94a4f597ff8aee0b79e51c9093452a1a2b6b7290 (patch) | |
tree | 75082bab0000c07452abef170750eb4d2655c8aa /web/lib/acctfuncs.inc.php | |
parent | 16c3a86193013efd604e4fe4c7ab225c3f65be87 (diff) | |
download | aurweb-94a4f597ff8aee0b79e51c9093452a1a2b6b7290.tar.xz |
Set Content-type header when sending UTF-8 mails
Fixes FS#38568.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 2b7cc7a..312f11b 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -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"; |