mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#2137 - Changed email encoding from iso-8859-15 to utf-8, in compliance with other parts of SilverStripe and IMC recommendations
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49142 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4c8e1b8b39
commit
fb99e57813
@ -440,13 +440,13 @@ function htmlEmail($to, $from, $subject, $htmlContent, $attachedFiles = false, $
|
||||
|
||||
|
||||
// Make the plain text part
|
||||
$headers["Content-Type"] = "text/plain; charset=\"iso-8859-15\"";
|
||||
$headers["Content-Type"] = "text/plain; charset=\"utf-8\"";
|
||||
$headers["Content-Transfer-Encoding"] = $plainEncoding ? $plainEncoding : "quoted-printable";
|
||||
|
||||
$plainPart = processHeaders($headers, ($plainEncoding == "base64") ? chunk_split(base64_encode($plainContent),60) : wordwrap($plainContent,120));
|
||||
|
||||
// Make the HTML part
|
||||
$headers["Content-Type"] = "text/html; charset=\"iso-8859-15\"";
|
||||
$headers["Content-Type"] = "text/html; charset=\"utf-8\"";
|
||||
|
||||
|
||||
// Add basic wrapper tags if the body tag hasn't been given
|
||||
@ -454,7 +454,7 @@ function htmlEmail($to, $from, $subject, $htmlContent, $attachedFiles = false, $
|
||||
$htmlContent =
|
||||
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n" .
|
||||
"<HTML><HEAD>\n" .
|
||||
"<META http-equiv=Content-Type content=\"text/html; charset=iso-8859-15\">\n" .
|
||||
"<META http-equiv=Content-Type content=\"text/html; charset=utf-8\">\n" .
|
||||
"<STYLE type=3Dtext/css></STYLE>\n\n".
|
||||
"</HEAD>\n" .
|
||||
"<BODY bgColor=#ffffff>\n" .
|
||||
@ -558,7 +558,7 @@ function plaintextEmail($to, $from, $subject, $plainContent, $attachedFiles, $cu
|
||||
|
||||
|
||||
// Make the plain text part
|
||||
$headers["Content-Type"] = "text/plain; charset=\"iso-8859-15\"";
|
||||
$headers["Content-Type"] = "text/plain; charset=\"utf-8\"";
|
||||
$headers["Content-Transfer-Encoding"] = $plainEncoding ? $plainEncoding : "quoted-printable";
|
||||
|
||||
$plainContent = ($plainEncoding == "base64") ? chunk_split(base64_encode($plainContent),60) : QuotedPrintable_encode($plainContent);
|
||||
@ -663,7 +663,7 @@ function wrapImagesInline($htmlContent) {
|
||||
|
||||
|
||||
// Make the HTML part
|
||||
$headers["Content-Type"] = "text/html; charset=\"iso-8859-15\"";
|
||||
$headers["Content-Type"] = "text/html; charset=\"utf-8\"";
|
||||
$headers["Content-Transfer-Encoding"] = "quoted-printable";
|
||||
$multiparts[] = processHeaders($headers, QuotedPrintable_encode($replacedContent));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user