Interface MailProvider
- All Known Implementing Classes:
AbstractMailProvider
,DefaultMailProvider
,IncaMailProvider
public interface MailProvider
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
default MailProvider.SenderMode
instantiateMail
(String subject)
-
Method Details
-
getId
String getId()- Returns:
- a unique identifier
-
getSenderMode
- Returns:
- the "mode" for sender selection
-
getAllowedSenderAddresses
- Returns:
- a list of allowed sender addresses, will only be used with RESTRICTED SenderMode
-
instantiateMail
- Returns:
- creates a new
Mail
instance that supports the current mail provider
-