From 2f011a7b81fde261e7fed5bf4227484056391dcf Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Fri, 30 Aug 2024 18:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mBase.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model/mBase.php b/model/mBase.php index 8cb3144..0af089b 100644 --- a/model/mBase.php +++ b/model/mBase.php @@ -122,8 +122,9 @@ class mBase extends publicBase { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'smtp.163.com'; - $mail->Port = 587; + $mail->Port = 587; // TCP 端口 $mail->SMTPSecure = 'tls'; // 启用 TLS 加密 + //$mail->SMTPDebug = 2; // 是否开启调试 $mail->Username = $mail_name; $mail->Password = $GLOBALS['notice_qqmail_list'][$mail_name]; $mail->From = $mail_name; @@ -137,7 +138,7 @@ class mBase extends publicBase { $mail->addAttachment($attr); } - $mail->FromName = "快乐论文"; + $mail->FromName = "医者仁心·医案小助手"; foreach($emails as $email) { $mail->AddAddress($email); }