Interface IMailSendStatus

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int STATUS_SEND_PENDING
      Status code that indicates the sending is pending.
      static int STATUS_SENDING
      Status code that indicates the sending is in progress.
      static int STATUS_SENT_ERROR
      Status code that indicates the sending was tried but was unsucessful.
      static int STATUS_SENT_OK
      Status code that indicates the sending was completed successfully.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getErrorMessage()
      Returns the error message of the last try to send the mail.
      java.util.Date getSentDateTime()
      Returns the datetime of the last try to send the mail.
      int getStatus()
      Returns the status of the sending of the mail.
      void setErrorMessage​(java.lang.String msg)
      Sets the error message of the last try to send the mail.
      void setSentDateTime​(java.util.Date sentDate)
      Sets the datetime of the last try to send the mail.
      void setStatus​(int status)
      Sets the sending status of the mail.
    • Field Detail

      • STATUS_SEND_PENDING

        static final int STATUS_SEND_PENDING
        Status code that indicates the sending is pending.
        Since:
        4.0.4
        See Also:
        getStatus(), Constant Field Values
      • STATUS_SENDING

        static final int STATUS_SENDING
        Status code that indicates the sending is in progress. If this status code stays for much time may indicate the sending process was interrupted, and it is not possible to know if it was sent or not.
        Since:
        4.0.4
        See Also:
        getStatus(), Constant Field Values
      • STATUS_SENT_OK

        static final int STATUS_SENT_OK
        Status code that indicates the sending was completed successfully.
        Since:
        4.0.4
        See Also:
        getStatus(), Constant Field Values
    • Method Detail

      • getSentDateTime

        java.util.Date getSentDateTime()
        Returns the datetime of the last try to send the mail.
        Returns:
        the datetime of the last try to send the mail.
        Since:
        4.0.4
      • setSentDateTime

        void setSentDateTime​(java.util.Date sentDate)
        Sets the datetime of the last try to send the mail.
        Parameters:
        sentDate - the datetime value to set.
        Since:
        4.0.4
      • getErrorMessage

        java.lang.String getErrorMessage()
        Returns the error message of the last try to send the mail.
        Returns:
        the error message of the last try to send the mail.
        Since:
        4.0.4
      • setErrorMessage

        void setErrorMessage​(java.lang.String msg)
        Sets the error message of the last try to send the mail.
        Parameters:
        msg - the error message to set.
        Since:
        4.0.4