From fa77cfa9332d4a85ad0d63704d793e9b969ede16 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 Dec 2018 12:00:16 +0300 Subject: set phpmailer charset to utf-8 --- init.php | 1 + 1 file changed, 1 insertion(+) (limited to 'init.php') diff --git a/init.php b/init.php index a347de9..1997c09 100644 --- a/init.php +++ b/init.php @@ -56,6 +56,7 @@ class mailer_smtp extends Plugin { $phpmailer->setFrom($from_address, $from_name); $phpmailer->addAddress($params["to_address"], $params["to_name"]); $phpmailer->Subject = $params["subject"]; + $phpmailer->CharSet = "UTF-8"; if ($params["message_html"]) { $phpmailer->msgHTML($params["message_html"]); -- cgit v1.2.3 From 9121d6f23fd819eafed3d096ce971bac0581ae47 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 Dec 2018 12:12:35 +0300 Subject: set charset earlier --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.php') diff --git a/init.php b/init.php index 1997c09..883e19f 100644 --- a/init.php +++ b/init.php @@ -25,6 +25,7 @@ class mailer_smtp extends Plugin { $pair = explode(":", SMTP_SERVER, 2); $phpmailer->Host = $pair[0]; $phpmailer->Port = $pair[1]; + $phpmailer->CharSet = "UTF-8"; if (!$phpmailer->Port) $phpmailer->Port = 25; @@ -56,7 +57,6 @@ class mailer_smtp extends Plugin { $phpmailer->setFrom($from_address, $from_name); $phpmailer->addAddress($params["to_address"], $params["to_name"]); $phpmailer->Subject = $params["subject"]; - $phpmailer->CharSet = "UTF-8"; if ($params["message_html"]) { $phpmailer->msgHTML($params["message_html"]); -- cgit v1.2.3