Interface IMailConnection

All Superinterfaces:
IConnection
All Known Implementing Classes:
SimpleSmtpMailConnection

public interface IMailConnection extends IConnection
This interface describes a connection to send email messages.
Since:
6.4
Author:
Jon van Leuven
  • Method Details

    • sendMessage

      void sendMessage(IMailMessage message) throws MailSizeExceededException
      This method sends the email message via this connection.
      Parameters:
      message - The email message, may not be null
      Throws:
      IllegalArgumentException - Should be thrown when the message is null or the connection does not support the supplied message implementation.
      SysException - Should be thrown when there was a problem sending the message.
      MailSizeExceededException - Should be thrown when the message size exceeds the mail server storage allocation.
    • getFromAddress

      String getFromAddress()
    • getToAddresses

      String[] getToAddresses()
    • getCcAddresses

      String[] getCcAddresses()
    • getBccAddresses

      String[] getBccAddresses()