Andrea Pollastri 5 rokov pred
rodič
commit
9f1c3419f7

+ 1 - 1
app/Providers/SMTPConfigServiceProvider.php

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