public interface MailService
| Modifier and Type | Method and Description |
|---|---|
void |
fetch()
Fetch mails from remote mail server.
|
List<InternetAddress> |
findEmails(String matching,
List<String> selected,
int maxResults)
Search for email addresses matching the given text.
|
Model |
resolve(String email)
Resolve the given email address to an associated entity.
|
void |
send(MailMessage message)
Send a mail for the given
MailMessage. |
void send(MailMessage message) throws MailException
MailMessage.message - the message to sendMailException - on failurevoid fetch()
throws MailException
MailException - on failureModel resolve(String email)
Generally, it should resolve to the User, Contact,
Partner or Customer that represents a contact.
The default implementation resolves to the User records.
email - the email address to resolveList<InternetAddress> findEmails(String matching, List<String> selected, int maxResults)
matching - the match textselected - already selected email addressesmaxResults - maximum number of items to returnInternetAddress