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
Getting error message by error code #1579
Comments
Although this seems a valid question at first glance, you want to resend regardless of the error right? |
I think this is a reasonable request. PHPMailer is usually set up in a fixed configuration, where it is always sending through the same mail server, and so any problems tend to be dealt with interactively during development, at which time descriptive error messages are appropriate. Send-time SMTP errors already provide SMTP error codes, and bounces (which PHPMailer doesn’t attempt to handle) have embedded error information. Other runtime errors are harder to deal with because they do indeed lack clear error codes that would help you handle them programmaticly. Something like an |
@Synchro Yes that's exactly what i have in mind. The ErrorInfo property could be improved to contain numeric code. This should be a feature request |
Hi.
I am trying to implement a resend mail feature in my application. Basically should there be a connection issue or other related problems, the application saves the failed message to a database and then retries again after some minutes.
Is there anyway to get an error code via errorInfo variable? For example, if it is an authentication problem, error code can be 3. etc?
The text was updated successfully, but these errors were encountered: