This commit is contained in:
2025-03-24 14:32:16 +08:00
parent b7775cafcf
commit 8cee9fa81b
+7 -4
View File
@@ -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;