Interface MailPolicyFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Method Detail

      • beforeSendMail

        boolean beforeSendMail​(MailMessage msg,
                               java.util.HashMap<java.lang.String,​java.lang.Object> ctxt)
        Invoked before a mail is sent.
        Parameters:
        msg - the MailMessage instance that will be sent
        ctxt - a context used to store information for this mail sending (context is used accross beforeSendMail and afterSensMail)
        Returns:
        false to stop the sending, true to continue
      • afterSendMail

        void afterSendMail​(MailMessage msg,
                           java.util.HashMap<java.lang.String,​java.lang.Object> ctxt)
        Invoked after a mail was sent.

        This method may not be invoked if an exception occured during sending or if sending was cancelled by a MailPolicyFilter in beforeSendMail.

        Parameters:
        msg - the MailMessage instance that was sent
        ctxt - a context used to store information for this mail sending (context is used accross beforeSendMail and afterSensMail)