From 8cee9fa81bc900334e8cd4d6a27fa07019a41856 Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Mon, 24 Mar 2025 14:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/MailService.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/service/MailService.php b/app/service/MailService.php index 4a0f616..244fcb1 100644 --- a/app/service/MailService.php +++ b/app/service/MailService.php @@ -19,15 +19,18 @@ class MailService { // SMTP 配置 $this->mailer->isSMTP(); - $this->mailer->Host = 'smtp.gmail.com'; -// $this->mailer->Host = 'smtp.qq.com'; +// $this->mailer->Host = 'smtp.gmail.com'; + $this->mailer->Host = 'smtp.feishu.cn'; $this->mailer->SMTPAuth = true; // $this->mailer->Username = 'xinyouhe25@gmail.com'; // 替换为你的 Gmail // $this->mailer->Password = 'zhjkkaplncykzymo'; // 替换为应用专用密码 - $this->mailer->Username = 'linyang0618@gmail.com'; // 替换为你的 Gmail - $this->mailer->Password = 'mrjefuahbwbpqakb'; // 替换为应用专用密码 +// $this->mailer->Username = 'linyang0618@gmail.com'; // 替换为你的 Gmail +// $this->mailer->Password = 'mrjefuahbwbpqakb'; // 替换为应用专用密码 + + $this->mailer->Username = 'app@hnxinyouhe.com'; // 替换为你的 Gmail + $this->mailer->Password = 'akyIUFJ6ihGGjI5h'; // 替换为应用专用密码 // $this->mailer->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // 使用 TLS $this->mailer->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // SSL 加密 // $this->mailer->Port = 587;