public interface EmailSupport
| Modifier and Type | Method and Description |
|---|---|
void |
addBCCAddress(Message msg,
java.lang.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,
java.util.List 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,
java.lang.String email)
Adds a CC email address to the given message to be used when sending out via email transport
|
void |
addCCAddresses(Message msg,
java.util.List 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,
java.lang.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,
java.lang.String user,
java.lang.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,
java.lang.String subject)
Sets the email subject for the outgoing message via the email transport
|
void setSubject(Message msg, java.lang.String subject)
msg - the message to which the subject to be setsubject - the subject to be set for the given messagevoid addCCAddress(Message msg, java.lang.String email)
msg - the message to add the CC email addressemail - the email address to be added to the CC listvoid addCCAddresses(Message msg, java.util.List emails)
msg - the message to add the CC email addressesemails - the email addresses list to be added to the CC listvoid addBCCAddress(Message msg, java.lang.String email)
msg - the message to add the BCC email addressemail - the email address to be added to the BCC listvoid addBCCAddresses(Message msg, java.util.List emails)
msg - the message to add the BCC email addressesemails - the email addresses list to be added to the BCC listvoid setFromAddress(Message msg, java.lang.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, java.lang.String user, java.lang.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 out