瀏覽代碼

SMTP config fix

Andrea Pollastri 5 年之前
父節點
當前提交
9f1c3419f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Providers/SMTPConfigServiceProvider.php

+ 1 - 1
app/Providers/SMTPConfigServiceProvider.php

@@ -26,7 +26,7 @@ class SMTPConfigServiceProvider extends ServiceProvider
     {
         if(\Schema::hasTable('smtps')) {
             $mail = DB::table('smtps')->first();
-            if ($mail) {
+            if($mail && $mail->host != 'smtp.yourdomain.ltd') {
                 $config = array(
                     'driver'     => 'smtp',
                     'host'       => $mail->host,