From 0791369141d66d863367b3cb90c00fdaa229bf41 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 23 Oct 2025 09:24:39 +0800 Subject: [PATCH] update --- app/Console/Commands/TestEmailCommand.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Console/Commands/TestEmailCommand.php b/app/Console/Commands/TestEmailCommand.php index b10491c..3be822e 100644 --- a/app/Console/Commands/TestEmailCommand.php +++ b/app/Console/Commands/TestEmailCommand.php @@ -39,18 +39,12 @@ class TestEmailCommand extends Command $this->info("主题: {$subject}"); try { - // 临时设置为 log 驱动进行测试 - $originalMailer = config('mail.default'); - config(['mail.default' => 'log']); // 使用 Laravel 的 Mail 门面发送邮件 Mail::raw($content, function ($message) use ($to, $subject) { $message->to($to)->subject($subject); }); - // 恢复原始配置 - config(['mail.default' => $originalMailer]); - $this->info("✅ 邮件发送成功!"); $this->info("邮件已记录到日志文件中,请检查 storage/logs/laravel.log");