PHPMailer使用中文错误翻译

This commit is contained in:
耗子 2025-06-19 22:59:10 +08:00
parent 817ec0059d
commit 14bda3332d
No known key found for this signature in database
GPG Key ID: C964D7226D045DAA

View File

@ -187,7 +187,7 @@ class MsgNotice
$mail_pwd = config_get('mail_pwd');
if (!$mail_name || !$mail_port || !$mail_smtp || !$mail_pwd) return false;
$mail = new PHPMailer(true);
$mail->setLanguage('zh_cn', app()->getRootPath().'vendor/phpmailer/phpmailer/language/');
$mail->setLanguage('zh_cn');
try {
$mail->SMTPDebug = 0;
$mail->CharSet = 'UTF-8';