Skip to content

Commit

Permalink
[FW] Laravel 9 switched from Swift to Sympony mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed May 25, 2024
1 parent 203cd28 commit 8473497
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 8473497

Please sign in to comment.