Skip to content

Commit

Permalink
Enable SMTP debugging in doctor
Browse files Browse the repository at this point in the history
  • Loading branch information
stnguyen90 committed Feb 3, 2023
1 parent e72c551 commit 4684130
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/tasks/doctor.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@
}

try {
$mail = $register->get('smtp'); /* @var $mail \PHPMailer\PHPMailer\PHPMailer */
/** @var PHPMailer\PHPMailer\PHPMailer $mail */
$mail = $register->get('smtp');
$mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_SERVER;

$mail->addAddress('demo@example.com', 'Example.com');
$mail->Subject = 'Test SMTP Connection';
Expand Down

0 comments on commit 4684130

Please sign in to comment.