From f02cfb8e0c4f896ad022d48cd8f1df6c1fd08cf4 Mon Sep 17 00:00:00 2001 From: bsitu Date: Tue, 2 Jul 2013 17:32:26 -0700 Subject: [PATCH] Mime emails should be sent with UTF-8 charset Change-Id: Ifa3d14340b163ce09363c6b9956aee5c7522e6a3 --- includes/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 8e3f048dbb..52eb752142 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -267,7 +267,7 @@ class UserMailer { $body['text'] = str_replace( "\n", "\r\n", $body['text'] ); $body['html'] = str_replace( "\n", "\r\n", $body['html'] ); } - $mime = new Mail_mime( array( 'eol' => $endl ) ); + $mime = new Mail_mime( array( 'eol' => $endl, 'text_charset' => 'UTF-8', 'html_charset' => 'UTF-8' ) ); $mime->setTXTBody( $body['text'] ); $mime->setHTMLBody( $body['html'] ); $body = $mime->get(); // must call get() before headers() -- 2.20.1