Skip to content

Commit

Permalink
Merge branch 'release-v6' of github.com:inex/IXP-Manager into release-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed May 27, 2024
2 parents 3aa7a85 + 8473497 commit 17f5f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/Console/Commands/Utils/SmtpMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
}
}
8 changes: 4 additions & 4 deletions app/Mail/Utils/SmtpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 17f5f72

Please sign in to comment.