Package | Description |
---|---|
sirius.web.mails |
Modifier and Type | Method and Description |
---|---|
MailSender |
MailSender.addAttachment(DataSource attachment)
Adds an attachment to the email.
|
MailSender |
MailSender.addAttachments(DataSource... attachmentsToAdd)
Adds an array of attachments to the email.
|
MailSender |
MailSender.addAttachments(List<DataSource> attachments)
Adds a list of attachments to the email.
|
MailSender |
MailSender.addHeader(String name,
String value)
Adds an individual header to the SMTP message.
|
MailSender |
MailSender.addResourceAsAttachment(String resource,
String filename,
String contentId)
Adds a resource as attachment.
|
MailSender |
Mails.createEmail()
Creates a new builder which is used to specify the mail to send.
|
MailSender |
MailSender.from(String senderEmail,
String senderName)
Specifies both, the sender email and name.
|
MailSender |
MailSender.fromEmail(String senderEmail)
Sets the email address used as sender of the email.
|
MailSender |
MailSender.fromName(String senderName)
Sets the name used as sender of the mail.
|
MailSender |
MailSender.htmlContent(String html)
Sets the HTML content of the email.
|
MailSender |
MailSender.htmlTemplate(String template,
sirius.kernel.commons.Context context)
Renders the given template and uses it as HTML part.
|
MailSender |
MailSender.setBounceToken(String token)
Sets a bounce token.
|
MailSender |
MailSender.setLang(String... langs)
Sets the language used to perform
NLS lookups when rendering templates. |
MailSender |
MailSender.simulate(boolean simulateOnly)
Sets the simulation flag.
|
MailSender |
MailSender.subject(String subject)
Specifies the subject line of the mail.
|
MailSender |
MailSender.textContent(String text)
Sets the text content of the email.
|
MailSender |
MailSender.textTemplate(String template,
sirius.kernel.commons.Context context)
Renders the given template and uses it as text part.
|
MailSender |
MailSender.to(String receiverEmail,
String receiverName)
Specifies both, the receiver email and name.
|
MailSender |
MailSender.toEmail(String receiverEmail)
Specifies the email address to send the mail to.
|
MailSender |
MailSender.toName(String receiverName)
Specifies the name of the receiver.
|
MailSender |
MailSender.type(String type)
Specifies the type of the mail primarily used for logging.
|
Copyright © 2018. All rights reserved.