Interface IMailerCallbackHandler
public interface IMailerCallbackHandler
Callback handler invoked after sending an email.
When the email was successfully delivered to by the SMTP server the onSuccess method will be triggered. Otherwise if something went wrong the onError will be called with the error message of the SMTP server.
-
Method Summary
-
Method Details
-
onError
Called when the SMTP incurred in an error sending the email- Parameters:
email- a reference to the email that was being sentex- the error
-
onSuccess
Called when an email was successfully delivered to the SMTP server- Parameters:
email- reference to the email being sent
-