-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code error in mailing_list example #1990
Comments
Thanks for reporting - You are absolutely correct - fixed in master! |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
In the mailing_list.php example, lines 69-71, is the following code:
//Reset the connection to abort sending this message
//The loop will continue trying to send to the rest of the list
$mail->smtp->reset();
This caused a fatal error in my script:
Cannot access protected property PHPMailer::$smtp
I looked at the PHPMailer.php code and the
$smtp
property is indeed protected, so I don't see how this reset can work.The reset was only triggered because an exception was thrown when running
$mail->send()
but that was a server issue that is now fixed.Have I missed something here? My PHP is not bad, but not brilliant either!
Thanks,
Charles
The text was updated successfully, but these errors were encountered: