Access the `$smtp` instance the right way, fixes #1990

This commit is contained in:
Marcus Bointon 2020-02-24 15:01:57 +01:00
parent b8f4e4e9c2
commit 589ec7d8f3
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ foreach ($result as $row) {
echo 'Mailer Error (' . htmlspecialchars($row['email']) . ') ' . $mail->ErrorInfo . '<br>';
//Reset the connection to abort sending this message
//The loop will continue trying to send to the rest of the list
$mail->smtp->reset();
$mail->getSMTPInstance()->reset();
}
//Clear all addresses and attachments for the next iteration
$mail->clearAddresses();