diff --git a/config/mail.php b/config/mail.php index 7529216..703c86c 100644 --- a/config/mail.php +++ b/config/mail.php @@ -35,7 +35,8 @@ return [ 'mailers' => [ 'smtp' => [ - // 生产环境固定使用腾讯企业邮箱,避免服务器残留 Mailpit 配置覆盖 SMTP。 + // 生产环境固定使用腾讯企业邮箱;url 必须为 null,避免 MAIL_URL 或残留 Mailpit 配置覆盖 SMTP。 + // 用户名和密码仍从 .env 读取,执行 config:cache 后也会写入缓存配置。 'transport' => 'smtp', 'url' => null, 'host' => 'smtp.exmail.qq.com',