public interface MailService
getService(MailService.class)
to request an instance of this service.ServicesBroker.getService(Class)
Modifier and Type | Field and Description |
---|---|
static String |
SUBTYPE_HTML |
static String |
SUBTYPE_PLAIN |
Modifier and Type | Method and Description |
---|---|
void |
sendMail(MailHeader mailHeader,
String subject,
String message,
Attachment... attachments) |
void |
sendMail(MailHeader mailHeader,
String subject,
String message,
String subType,
boolean synchronous,
Attachment... attachments) |
void |
sendMail(String recipient,
String subject,
String message)
Send a textual mail the set recipient(s), where the message is assumed to
be of type "plain".
|
void |
sendMail(String recipient,
String subject,
String message,
Attachment... attachments)
Send a mail the set recipient(s), where the message is assumed to be of
type "plain".
|
void |
sendMail(String sender,
String recipient,
String subject,
String message)
Send a textual mail using the given sender name to the set recipient(s),
where the message is assumed to be of type "plain".
|
void |
sendMail(String sender,
String recipient,
String subject,
String message,
boolean synchronous,
Attachment... attachments)
Send a mail using the given sender name to the set recipient(s), where
the message is assumed to be of type "plain".
|
void |
sendMail(String sender,
String recipient,
String subject,
String message,
String subType)
Send a textual mail using the given sender name to the set recipient(s).
|
void |
sendMail(String sender,
String recipient,
String subject,
String message,
String subType,
boolean synchronous,
Attachment... attachments)
Send a mail using the given sender name to the set recipient(s).
|
static final String SUBTYPE_PLAIN
static final String SUBTYPE_HTML
void sendMail(String recipient, String subject, String message)
recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.void sendMail(String sender, String recipient, String subject, String message)
sender
- The sender of the mail.recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.void sendMail(String sender, String recipient, String subject, String message, String subType)
sender
- The sender of the mail.recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.subType
- sub type ("plain" for example)void sendMail(String recipient, String subject, String message, Attachment... attachments)
recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.attachments
- Any number of attachments, which base on files or
input streams.void sendMail(String sender, String recipient, String subject, String message, boolean synchronous, Attachment... attachments)
sender
- The sender of the mail.recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.synchronous
- true, if mail should be send synchronous, and false if should be send in a separated threadattachments
- Any number of attachments, which base on files orvoid sendMail(String sender, String recipient, String subject, String message, String subType, boolean synchronous, Attachment... attachments) throws de.espirit.firstspirit.server.mailmanagement.SendMailException
sender
- The sender of the mail.recipient
- A semicolon-separated list of recipients.subject
- The subject for the mail.message
- The textual message to be send.subType
- The type of message, either "plain" or
"html".attachments
- Any number of attachments, which base on files or
input streams. @throws SendMailException when sending mail failuresynchronous
- true, if mail should be send synchronous, and false if should be send in a separated threadde.espirit.firstspirit.server.mailmanagement.SendMailException
- if mail could not be sent, cause an error occuredvoid sendMail(MailHeader mailHeader, String subject, String message, Attachment... attachments) throws de.espirit.firstspirit.server.mailmanagement.SendMailException
mailHeader
- The configured mail header.subject
- The subject for the mail.message
- The textual message to be send.attachments
- Any number of attachments, which base on files or
input streams.de.espirit.firstspirit.server.mailmanagement.SendMailException
- when sending mail failurevoid sendMail(MailHeader mailHeader, String subject, String message, String subType, boolean synchronous, Attachment... attachments) throws de.espirit.firstspirit.server.mailmanagement.SendMailException
mailHeader
- The configured mail header.subject
- The subject for the mail.message
- The textual message to be send.subType
- The type of message, either "plain"
or "html".attachments
- Any number of attachments, which base on files or
input streams. @throws SendMailException when sending mail failurede.espirit.firstspirit.server.mailmanagement.SendMailException
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408