#1579·PHPMailer

Getting error message by error code

Author: AkinOlawaleCreated Oct 20, 2018Updated Mar 27, 2019

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?