summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-17 12:12:35 +0300
committerAndrew Dolgov <[email protected]>2018-12-17 12:12:35 +0300
commit9121d6f23fd819eafed3d096ce971bac0581ae47 (patch)
treeccbd46aa7a0805bad0759b69da8b7663cefa8772 /init.php
parentfa77cfa9332d4a85ad0d63704d793e9b969ede16 (diff)
set charset earlier
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
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"]);