Interface IMailConnection
- All Superinterfaces:
IConnection
- All Known Implementing Classes:
SimpleSmtpMailConnection
This interface describes a connection to send email messages.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
String[]
String[]
void
sendMessage
(IMailMessage message) This method sends the email message via this connection.Methods inherited from interface com.aquima.interactions.foundation.connectivity.IConnection
getName, getType
-
Method Details
-
sendMessage
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() -
getReplyToAddresses
String[] getReplyToAddresses() -
getToAddresses
String[] getToAddresses() -
getCcAddresses
String[] getCcAddresses() -
getBccAddresses
String[] getBccAddresses()
-