修复:增强 SMTP 连通性测试容错,加入 10 秒超时限制避免端口不通导致页面死锁,并捕获 Throwable 防止致命异常

This commit is contained in:
2026-02-27 09:53:46 +08:00
parent baae2cc26f
commit 02356666ca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class AppServiceProvider extends ServiceProvider
'encryption' => $smtpConfig->get('smtp_encryption', 'ssl'),
'username' => $smtpConfig->get('smtp_username'),
'password' => $smtpConfig->get('smtp_password'),
'timeout' => null,
'timeout' => 10,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
]);