Package de.xima.fc.mail.interfaces
Interface IMailContext
-
- All Known Implementing Classes:
DefaultMailContext
,MSGraphMailContext
,PasswordMailContext
public interface IMailContext
Interface of an mail context- Author:
- XIMA MEDIA GmbH, Dresden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMailServerData
getServerData()
Gets the mail server data of the contextvoid
send(IBaseMailData mailData)
Sends an mail based on the given datavoid
send(IBaseMailData mail, Mandant client)
Sends an mail based on the given datavoid
setAddressFilter(de.xima.cmn.filter.IGenericFilter<javax.mail.Address> addressFilter)
Sets an filter for excluding mail addresses during send
-
-
-
Method Detail
-
send
void send(IBaseMailData mailData) throws Exception
Sends an mail based on the given data- Parameters:
mailData
- the mail data- Throws:
Exception
- on errors while sending the mail
-
send
void send(IBaseMailData mail, Mandant client) throws Exception
Sends an mail based on the given data- Parameters:
mailData
- the mail dataclient
- the client to use for placeholder replacements- Throws:
Exception
- on errors while sending the mail
-
setAddressFilter
void setAddressFilter(de.xima.cmn.filter.IGenericFilter<javax.mail.Address> addressFilter)
Sets an filter for excluding mail addresses during send- Parameters:
addressFilter
- the address filter to set
-
getServerData
IMailServerData getServerData()
Gets the mail server data of the context- Returns:
- the server data
-
-