Interface MailerEngine

All Known Implementing Classes:
DummyMailerEngine

public interface MailerEngine
Sends mails.
Since:
1.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes connection.
    boolean
    Checks if this mailer currently connected.
    void
    Opens connection.
    void
    send(Mail mail)
    Sends a single mail.
  • Method Details

    • isConnected

      boolean isConnected()
      Checks if this mailer currently connected.
      Returns:
      true if this mailer is currently connected, otherwise false
      Since:
      1.7.0
    • openConnection

      void openConnection() throws Exception
      Opens connection.
      Throws:
      Exception - If an error occur while opening the connection
      Since:
      1.7.0
    • closeConnection

      void closeConnection() throws Exception
      Closes connection.
      Throws:
      Exception - If something wrong occur while closing the connection
      Since:
      1.7.0
    • send

      void send(Mail mail) throws Exception
      Sends a single mail.
      Parameters:
      mail - Mail to send
      Throws:
      Exception - If something wrong occur while sending email
      Since:
      1.7.0