From e12990086ee5f29743cd78a85d15549727c135f7 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 13 Jun 2025 06:45:09 +0200 Subject: [PATCH] Added explicit UTF-8 encoding to all HTML emails --- application/MailtemplateDispatch/MailtemplateDispatch.php | 2 +- application/Preorder/Preorder.php | 2 +- application/Preordernotification/Preordernotification.php | 2 +- scripts/preorder/custom_notifications/init.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/MailtemplateDispatch/MailtemplateDispatch.php b/application/MailtemplateDispatch/MailtemplateDispatch.php index f6a511edb..7a8de96b7 100644 --- a/application/MailtemplateDispatch/MailtemplateDispatch.php +++ b/application/MailtemplateDispatch/MailtemplateDispatch.php @@ -45,7 +45,7 @@ class MailtemplateDispatch extends mfBaseModel { if(!$template) return false; if($template->body_html) { - $body = ""; + $body = ''; $body .= $template->renderBody(); $body .= "\n"; // explicitly add new line, or some mail clients wont show attachment } else { diff --git a/application/Preorder/Preorder.php b/application/Preorder/Preorder.php index 2e9f40b0a..d86e52402 100644 --- a/application/Preorder/Preorder.php +++ b/application/Preorder/Preorder.php @@ -384,7 +384,7 @@ class Preorder extends mfBaseModel { } $subject = $mailtemplate->getVariableReplacedSubject($replacers); - $body = ""; + $body = ''; $body .= $mailtemplate->renderBody($replacers); $body .= "\n"; diff --git a/application/Preordernotification/Preordernotification.php b/application/Preordernotification/Preordernotification.php index 53e41233f..f70ddd70d 100644 --- a/application/Preordernotification/Preordernotification.php +++ b/application/Preordernotification/Preordernotification.php @@ -30,7 +30,7 @@ class Preordernotification extends mfBaseModel { public function sendToPreorder(Preorder $preorder, $email_to = false) { $subject = $this->subject; - $body = ""; + $body = ''; $body .= $this->replaceBodyVariables($this->body_html, $preorder); // TODO: Variable replacement $body .= ""; $body .= "\n"; // explicitlyadd new line, or some mail clients wont show attachment diff --git a/scripts/preorder/custom_notifications/init.php b/scripts/preorder/custom_notifications/init.php index 5534398ab..777c220a7 100644 --- a/scripts/preorder/custom_notifications/init.php +++ b/scripts/preorder/custom_notifications/init.php @@ -55,7 +55,7 @@ function sendPreorderEmail($mailtemplate, $preordercampaign, $preorder, $email_t } $subject = $mailtemplate->getVariableReplacedSubject($replacers); - $body = ""; + $body = ''; $body .= $mailtemplate->renderBody($replacers); $body .= "\n";