diff options
author | Andrew Dolgov <[email protected]> | 2018-12-17 12:12:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-17 12:12:35 +0300 |
commit | 9121d6f23fd819eafed3d096ce971bac0581ae47 (patch) | |
tree | ccbd46aa7a0805bad0759b69da8b7663cefa8772 /init.php | |
parent | fa77cfa9332d4a85ad0d63704d793e9b969ede16 (diff) |
set charset earlier
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"]); |