diff --git a/app/Console/Commands/Utils/SmtpMailTest.php b/app/Console/Commands/Utils/SmtpMailTest.php index 38d266964..35da4e728 100644 --- a/app/Console/Commands/Utils/SmtpMailTest.php +++ b/app/Console/Commands/Utils/SmtpMailTest.php @@ -125,9 +125,5 @@ public function handle() } } - if( $this->getOutput()->isVerbose() ) { - $this->line( "\n\n" . str_repeat( '=', 40 ) . "\nSMTP Dialog:\n\n" ); - $this->line( $mail->logger()->dump() ); - } } } \ No newline at end of file diff --git a/app/Mail/Utils/SmtpTest.php b/app/Mail/Utils/SmtpTest.php index 0882a652e..363cf8f07 100644 --- a/app/Mail/Utils/SmtpTest.php +++ b/app/Mail/Utils/SmtpTest.php @@ -64,10 +64,10 @@ public function __construct( bool $debug = false ) */ public function build(): self { - if( $this->debug ) { - $this->logger = new \Swift_Plugins_Loggers_ArrayLogger; - Mail::getSwiftMailer()->registerPlugin( new \Swift_Plugins_LoggerPlugin($this->logger)); - } +// if( $this->debug ) { +// $this->logger = new \Swift_Plugins_Loggers_ArrayLogger; +// Mail::getSwiftMailer()->registerPlugin( new \Swift_Plugins_LoggerPlugin($this->logger)); +// } return $this->markdown( 'utils.emails.smtp-test' ) ->subject( 'SMTP test email from IXP Manager' );