From: bsitu Date: Wed, 3 Jul 2013 00:32:26 +0000 (-0700) Subject: Mime emails should be sent with UTF-8 charset X-Git-Tag: 1.31.0-rc.0~19192^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=f02cfb8e0c4f896ad022d48cd8f1df6c1fd08cf4;p=lhc%2Fweb%2Fwiklou.git Mime emails should be sent with UTF-8 charset Change-Id: Ifa3d14340b163ce09363c6b9956aee5c7522e6a3 --- 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()