From 589ec7d8f39b714cb7292cd066d90c3efb649aff Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Mon, 24 Feb 2020 15:01:57 +0100 Subject: [PATCH] Access the `$smtp` instance the right way, fixes #1990 --- examples/mailing_list.phps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mailing_list.phps b/examples/mailing_list.phps index b9572cfb..57abdfdd 100644 --- a/examples/mailing_list.phps +++ b/examples/mailing_list.phps @@ -68,7 +68,7 @@ foreach ($result as $row) { echo 'Mailer Error (' . htmlspecialchars($row['email']) . ') ' . $mail->ErrorInfo . '
'; //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();