Access the `$smtp` instance the right way, fixes #1990
This commit is contained in:
parent
b8f4e4e9c2
commit
589ec7d8f3
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue