mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
PHPMailer使用中文错误翻译
This commit is contained in:
parent
14593317ac
commit
817ec0059d
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace app\utils;
|
||||
use PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use think\facade\Db;
|
||||
use app\lib\CertHelper;
|
||||
use app\lib\DeployHelper;
|
||||
@ -187,6 +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/');
|
||||
try {
|
||||
$mail->SMTPDebug = 0;
|
||||
$mail->CharSet = 'UTF-8';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user