Interface MailProvider

All Known Implementing Classes:
AbstractMailProvider, DefaultMailProvider, IncaMailProvider

public interface MailProvider
  • Method Details

    • getId

      String getId()
      Returns:
      a unique identifier
    • getSenderMode

      default MailProvider.SenderMode getSenderMode()
      Returns:
      the "mode" for sender selection
    • getAllowedSenderAddresses

      default List<String> getAllowedSenderAddresses()
      Returns:
      a list of allowed sender addresses, will only be used with RESTRICTED SenderMode
    • instantiateMail

      Mail instantiateMail(String subject)
      Returns:
      creates a new Mail instance that supports the current mail provider