correct display problem for non-English words

add $mail->CharSet = 'UTF-8' to support non-English locale like Chinese
This commit is contained in:
-Shiken-
2021-05-19 04:00:32 +08:00
committed by GitHub
parent 7957807b1a
commit 1a50cb3ec4

View File

@@ -152,6 +152,7 @@ function send_phpmailer($email, $subject, $message)
$mail->addReplyTo(get_config('smtp_mail'));
// Content
$mail->CharSet = 'UTF-8';
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $message;
@@ -388,4 +389,4 @@ function lang($val)
function elang($val)
{
echo lang($val);
}
}