public interface MailService extends PluginService
| Modifier and Type | Method and Description |
|---|---|
Association |
associateRecipient(long mailId,
long addressId,
RecipientType type)
Update or create a mail recipient association.
|
Association |
associateSender(long topicId,
long addressId)
Update or create a mail sender association.
|
void |
associateValidatedRecipients(long mailId,
List<Topic> recipients)
Associate all valid email addresses of each recipient.
|
Collection<Topic> |
getSearchParentTypes()
Returns parent of each search type.
|
StatusReport |
send(Mail mail)
Sends a HTML mail.
|
Collection<Topic> getSearchParentTypes()
Association associateRecipient(long mailId, long addressId, RecipientType type)
mailId - ID of a mail topic.addressId - Email address of recipient.type - Recipient type URI or null to choose the configured default.Association associateSender(long topicId, long addressId)
topicId - ID of a mail or configuration topic.addressId - Email address of sender.void associateValidatedRecipients(long mailId, List<Topic> recipients)
mailId - recipients - StatusReport send(Mail mail) throws UnsupportedEncodingException, org.apache.commons.mail.EmailException, IOException
mail - Mail topic.UnsupportedEncodingExceptionorg.apache.commons.mail.EmailExceptionIOExceptionCopyright © 2015. All Rights Reserved.