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

    Modifier and Type
    Method
    Description
    void
    onError(Email email, Throwable ex)
    Called when the SMTP incurred in an error sending the email
    void
    Called when an email was successfully delivered to the SMTP server
  • Method Details

    • onError

      void onError(Email email, Throwable ex)
      Called when the SMTP incurred in an error sending the email
      Parameters:
      email - a reference to the email that was being sent
      ex - the error
    • onSuccess

      void onSuccess(Email email)
      Called when an email was successfully delivered to the SMTP server
      Parameters:
      email - reference to the email being sent