Interface MailTransport

  • All Known Implementing Classes:
    DefaultTransport

    public interface MailTransport
    SPI for sending e-mails.
    Author:
    Matthias Müller
    • Method Detail

      • createMail

        Mail createMail()
        Creates and returns a new Mail.
        Returns:
        the new Mail
      • getMailAsString

        String getMailAsString​(Mail mail)
        Returns a string-representation if the given Mail.
        Attention: The Mail may contain sensitive informations like passwords!
        Parameters:
        mail - the Mail to get the string-representation for
        Returns:
        a String representation the Mail
      • isDisableSend

        boolean isDisableSend()
        Checks whether this MailTransport is disabled.
        Returns:
        true if this MailTransport is disabled, false otherwise.
      • setDisableSend

        void setDisableSend​(boolean disableSend)
        Enable/disable sending for this MailTransport. If set to true, Mails will be logged instead of being send.
        Parameters:
        disableSend -