public interface MailService
Modifier and Type | Field and Description |
---|---|
static String |
AGGREGATION |
static String |
ATTACHMENTS |
static String |
BODY |
static String |
CHILD |
static String |
CHILD_TYPE |
static String |
COMPOSITION |
static String |
DATE |
static String |
EMAIL_ADDRESS |
static String |
FILE |
static String |
FROM |
static String |
MAIL |
static String |
MESSAGE_ID |
static String |
PARENT |
static String |
PARENT_TYPE |
static String |
RECIPIENT |
static String |
RECIPIENT_TYPE |
static String |
SENDER |
static String |
SIGNATURE |
static String |
SUBJECT |
static String |
TOPIC_TYPE |
static String |
USER_ACCOUNT |
Modifier and Type | Method and Description |
---|---|
de.deepamehta.core.Association |
associateRecipient(long mailId,
long addressId,
RecipientType type)
Update or create a mail recipient association.
|
de.deepamehta.core.Association |
associateSender(long topicId,
long addressId)
Update or create a mail sender association.
|
void |
associateValidatedRecipients(long mailId,
List<de.deepamehta.core.Topic> recipients)
Associate all valid email addresses of each recipient.
|
Collection<de.deepamehta.core.Topic> |
getSearchParentTypes()
Returns parent of each search type.
|
StatusReport |
send(Mail mail)
Sends a HTML mail.
|
static final String AGGREGATION
static final String COMPOSITION
static final String CHILD
static final String CHILD_TYPE
static final String TOPIC_TYPE
static final String PARENT
static final String PARENT_TYPE
static final String USER_ACCOUNT
static final String FILE
static final String ATTACHMENTS
static final String BODY
static final String EMAIL_ADDRESS
static final String DATE
static final String FROM
static final String MAIL
static final String MESSAGE_ID
static final String RECIPIENT
static final String RECIPIENT_TYPE
static final String SENDER
static final String SIGNATURE
static final String SUBJECT
Collection<de.deepamehta.core.Topic> getSearchParentTypes()
de.deepamehta.core.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.de.deepamehta.core.Association associateSender(long topicId, long addressId)
topicId
- ID of a mail or configuration topic.addressId
- Email address of sender.void associateValidatedRecipients(long mailId, List<de.deepamehta.core.Topic> recipients)
mailId
- recipients
- StatusReport send(Mail mail) throws UnsupportedEncodingException, org.apache.commons.mail.EmailException, IOException
mail
- Mail topic.UnsupportedEncodingException
org.apache.commons.mail.EmailException
IOException
Copyright © 2016. All rights reserved.