Skip to content

Commit

Permalink
Added mail debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 8, 2023
1 parent 105ede5 commit 751604d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ add_action('phpmailer_init', function (PHPMailer $mail) {
$mail->isSMTP();
$mail->SMTPAutoTLS = false;
$mail->SMTPAuth = env('MAIL_USERNAME') && env('MAIL_PASSWORD');
$mail->SMTPDebug = env('WP_DEBUG') ? SMTP::DEBUG_SERVER : SMTP::DEBUG_OFF;
$mail->SMTPSecure = env('MAIL_ENCRYPTION', 'tls');
$mail->Host = env('MAIL_HOST');
$mail->Port = env('MAIL_PORT', 587);
Expand Down

0 comments on commit 751604d

Please sign in to comment.