From 947bd798211993e68d46a9425779fd7539fd3c8d Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 22 Nov 2024 12:57:02 +0100 Subject: [PATCH] Set UTF-8 charset for PHP Mailer --- application/libraries/Email_messages.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/Email_messages.php b/application/libraries/Email_messages.php index ebe40f3c46..e5f55a0420 100644 --- a/application/libraries/Email_messages.php +++ b/application/libraries/Email_messages.php @@ -242,6 +242,7 @@ private function get_php_mailer(): PHPMailer { $php_mailer = new PHPMailer(true); + $php_mailer->CharSet = 'UTF-8'; $php_mailer->SMTPDebug = config('smtp_debug') ? SMTP::DEBUG_SERVER : null; if (config('protocol') === 'smtp') {