| Modifier and Type | Method and Description |
|---|---|
MailBuilder |
MailBuilder.attach(File file)
Add an attachment to the MimeMessage, taking the content from a
java.io.File. |
MailBuilder |
MailBuilder.attach(String name,
File file)
Add an attachment to the MimeMessage, taking the content from a
java.io.File. |
MailBuilder |
MailBuilder.attach(String name,
InputStream input,
String contentType)
Add an attachment to the MimeMessage.
|
MailBuilder |
MailBuilder.attach(String name,
org.springframework.core.io.Resource resource,
String contentType)
Add an attachment to the MimeMessage.
|
MailBuilder |
MailBuilder.bcc(Iterable<String> bcc)
Set 'bcc' with the provided email addresses.
|
MailBuilder |
MailBuilder.bcc(String... bcc)
Set 'bcc' with the provided email addresses.
|
MailBuilder |
MailBuilder.cc(Iterable<String> cc)
Set cc with the provided email addresses.
|
MailBuilder |
MailBuilder.cc(String... cc)
Set cc with the provided email addresses.
|
MailBuilder |
MailBuilder.from(String from)
Set 'from' with the provided email address.
|
MailBuilder |
MailBuilder.from(String from,
String name)
Set 'from' with the provided email address.
|
MailBuilder |
MailBuilder.html(String html,
Object... args)
Set the given text directly as content in non-multipart mode
or as default body part in multipart mode.
|
static MailBuilder |
MailBuilder.newMail(org.springframework.mail.javamail.JavaMailSender sender)
Creates a new mail message with multi-part support and UTF-8 encoding.
|
static MailBuilder |
MailBuilder.newMail(org.springframework.mail.javamail.JavaMailSender sender,
String encoding)
Creates a new mail message with multi-part support and the specified
encoding.
|
static MailBuilder |
MailBuilder.newSimpleMail(org.springframework.mail.javamail.JavaMailSender sender)
Creates a new simple mail message without multi-part support.
|
MailBuilder |
MailBuilder.replyTo(String replayTo)
Set 'replayTo' with the provided email address.
|
MailBuilder |
MailBuilder.replyTo(String replayTo,
String name)
Set 'replayTo' with the provided email address.
|
MailBuilder |
MailBuilder.subject(String subject)
Set 'subject' of the message.
|
MailBuilder |
MailBuilder.text(String text,
Object... args)
Set the given text directly as content.
|
MailBuilder |
MailBuilder.to(Iterable<String> to)
Set 'to' with the provided email addresses.
|
MailBuilder |
MailBuilder.to(String... to)
Set 'to' with the provided email addresses.
|
Copyright © 2013. All Rights Reserved.