Tychay has submitted this change and it was merged.
Change subject: Mime emails should be sent with UTF-8 charset
......................................................................
Mime emails should be sent with UTF-8 charset
Change-Id: Ifa3d14340b163ce09363c6b9956aee5c7522e6a3
---
M includes/UserMailer.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Tychay: Looks good to me, approved
Matthias Mullie: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/includes/UserMailer.php b/includes/UserMailer.php
index 8e3f048..52eb752 100644
--- a/includes/UserMailer.php
+++ b/includes/UserMailer.php
@@ -267,7 +267,7 @@
$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()
--
To view, visit https://gerrit.wikimedia.org/r/71747
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa3d14340b163ce09363c6b9956aee5c7522e6a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: EBernhardson (WMF) <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Tychay <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits