]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set email content type to text/plain; utf-8
authormillette <millette@controlyourself.ca>
Thu, 4 Dec 2008 21:34:14 +0000 (16:34 -0500)
committermillette <millette@controlyourself.ca>
Thu, 4 Dec 2008 21:34:14 +0000 (16:34 -0500)
darcs-hash:20081204213414-099f7-631e8aecc8ce2d8725b93e23e15e6e97f06a6bac.gz

lib/mail.php

index 3280c1b7b770ea79916f9f2e563e3a0ab0af3ec4..e627730a7a6169945eb34ccc5eacdb0fd19e8e7a 100644 (file)
@@ -39,6 +39,9 @@ function mail_backend() {
 
 function mail_send($recipients, $headers, $body) {
        $backend = mail_backend();
+    if (!isset($headers['Content-Type'])) {
+        $headers['Content-Type'] = 'text/plain; charset=UTF-8';
+    }
        assert($backend); # throws an error if it's bad
        $sent = $backend->send($recipients, $headers, $body);
        if (PEAR::isError($sent)) {