public interface EmailSupport
Modifier and Type | Method and Description |
---|---|
void |
addBCCAddress(Message msg,
String email)
Adds a BCC email address to the given message to be used when sending the message out via the email transport
|
void |
addBCCAddresses(Message msg,
List<String> emails)
Adds a list of BCC email addresses to the given message to be used when sending out via email transport
|
void |
addCCAddress(Message msg,
String email)
Adds a CC email address to the given message to be used when sending out via email transport
|
void |
addCCAddresses(Message msg,
List<String> emails)
Adds a list of CC email addresses to the given message to be used when sending out via email transport
|
void |
setFromAddress(Message msg,
String email)
Sets the SMTP from address for the given message to be used in sending the message out via the email transport
|
void |
setSMTPCredentials(Message msg,
String user,
String password)
Sets and overrides any already defined SMTP credentials to the given message to be used in sending the message
out via the SMTP transport
|
void |
setSubject(Message msg,
String subject)
Sets the email subject for the outgoing message via the email transport
|
void setSubject(Message msg, String subject)
msg
- the message to which the subject to be setsubject
- the subject to be set for the given messagevoid addCCAddress(Message msg, String email)
msg
- the message to add the CC email addressemail
- the email address to be added to the CC listvoid addCCAddresses(Message msg, List<String> emails)
msg
- the message to add the CC email addressesemails
- the email addresses list to be added to the CC listvoid addBCCAddress(Message msg, String email)
msg
- the message to add the BCC email addressemail
- the email address to be added to the BCC listvoid addBCCAddresses(Message msg, List<String> emails)
msg
- the message to add the BCC email addressesemails
- the email addresses list to be added to the BCC listvoid setFromAddress(Message msg, String email)
msg
- the message to which the given from address will be setemail
- the from email address to be set to the messagevoid setSMTPCredentials(Message msg, String user, String password)
msg
- the message to which the SMTP credentials are setuser
- the SMTP user to be used in sending out the messagepassword
- the SMTP authentication password to be used in sending the message outCopyright © 2010–2016 AdroitLogic. All rights reserved.