Package | Description |
---|---|
org.apache.commons.mail |
Commons-Email aims to provide a API for sending email.
|
Modifier and Type | Method | Description |
---|---|---|
Email |
Email.addBcc(java.lang.String email) |
Add a blind BCC recipient to the email.
|
Email |
Email.addBcc(java.lang.String... emails) |
Add an array of blind BCC recipients to the email.
|
Email |
Email.addBcc(java.lang.String email,
java.lang.String name) |
Add a blind BCC recipient to the email using the specified address and
the specified personal name.
|
Email |
Email.addBcc(java.lang.String email,
java.lang.String name,
java.lang.String charset) |
Add a blind BCC recipient to the email using the specified address,
personal name, and charset encoding for the name.
|
Email |
Email.addCc(java.lang.String email) |
Add a recipient CC to the email.
|
Email |
Email.addCc(java.lang.String... emails) |
Add an array of CC recipients to the email.
|
Email |
Email.addCc(java.lang.String email,
java.lang.String name) |
Add a recipient CC to the email using the specified address and the
specified personal name.
|
Email |
Email.addCc(java.lang.String email,
java.lang.String name,
java.lang.String charset) |
Add a recipient CC to the email using the specified address, personal
name, and charset encoding for the name.
|
Email |
MultiPartEmail.addPart(java.lang.String partContent,
java.lang.String partContentType) |
Add a new part to the email.
|
Email |
MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart) |
Add a new part to the email.
|
Email |
MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart,
int index) |
Add a new part to the email.
|
Email |
Email.addReplyTo(java.lang.String email) |
Add a reply to address to the email.
|
Email |
Email.addReplyTo(java.lang.String email,
java.lang.String name) |
Add a reply to address to the email using the specified address and
the specified personal name.
|
Email |
Email.addReplyTo(java.lang.String email,
java.lang.String name,
java.lang.String charset) |
Add a reply to address to the email using the specified address,
personal name, and charset encoding for the name.
|
Email |
Email.addTo(java.lang.String email) |
Add a recipient TO to the email.
|
Email |
Email.addTo(java.lang.String... emails) |
Add a list of TO recipients to the email.
|
Email |
Email.addTo(java.lang.String email,
java.lang.String name) |
Add a recipient TO to the email using the specified address and the
specified personal name.
|
Email |
Email.addTo(java.lang.String email,
java.lang.String name,
java.lang.String charset) |
Add a recipient TO to the email using the specified address, personal
name, and charset encoding for the name.
|
MultiPartEmail |
MultiPartEmail.attach(java.io.File file) |
Attach a file.
|
MultiPartEmail |
MultiPartEmail.attach(java.net.URL url,
java.lang.String name,
java.lang.String description) |
Attach a file located by its URL.
|
MultiPartEmail |
MultiPartEmail.attach(java.net.URL url,
java.lang.String name,
java.lang.String description,
java.lang.String disposition) |
Attach a file located by its URL.
|
MultiPartEmail |
MultiPartEmail.attach(javax.activation.DataSource ds,
java.lang.String name,
java.lang.String description) |
Attach a file specified as a DataSource interface.
|
MultiPartEmail |
MultiPartEmail.attach(javax.activation.DataSource ds,
java.lang.String name,
java.lang.String description,
java.lang.String disposition) |
Attach a file specified as a DataSource interface.
|
MultiPartEmail |
MultiPartEmail.attach(EmailAttachment attachment) |
Attach an EmailAttachment.
|
void |
Email.buildMimeMessage() |
Does the work of actually building the MimeMessage.
|
void |
HtmlEmail.buildMimeMessage() |
Does the work of actually building the MimeMessage.
|
void |
ImageHtmlEmail.buildMimeMessage() |
Does the work of actually building the MimeMessage.
|
void |
MultiPartEmail.buildMimeMessage() |
Does the work of actually building the MimeMessage.
|
java.lang.String |
HtmlEmail.embed(java.io.File file) |
Embeds a file in the HTML.
|
java.lang.String |
HtmlEmail.embed(java.io.File file,
java.lang.String cid) |
Embeds a file in the HTML.
|
java.lang.String |
HtmlEmail.embed(java.lang.String urlString,
java.lang.String name) |
Attempts to parse the specified
String as a URL that will
then be embedded in the message. |
java.lang.String |
HtmlEmail.embed(java.net.URL url,
java.lang.String name) |
Embeds an URL in the HTML.
|
java.lang.String |
HtmlEmail.embed(javax.activation.DataSource dataSource,
java.lang.String name) |
Embeds the specified
DataSource in the HTML using a
randomly generated Content-ID. |
java.lang.String |
HtmlEmail.embed(javax.activation.DataSource dataSource,
java.lang.String name,
java.lang.String cid) |
Embeds the specified
DataSource in the HTML using the
specified Content-ID. |
javax.mail.Session |
Email.getMailSession() |
Determines the mail session used when sending this Email, creating
the Session if necessary.
|
java.lang.String |
Email.send() |
Sends the email.
|
java.lang.String |
Email.sendMimeMessage() |
Sends the previously created MimeMessage to the SMTP server.
|
Email |
Email.setBcc(java.util.Collection<javax.mail.internet.InternetAddress> aCollection) |
Set a list of "BCC" addresses.
|
Email |
Email.setCc(java.util.Collection<javax.mail.internet.InternetAddress> aCollection) |
Set a list of "CC" addresses.
|
Email |
Email.setFrom(java.lang.String email) |
Set the FROM field of the email to use the specified address.
|
Email |
Email.setFrom(java.lang.String email,
java.lang.String name) |
Set the FROM field of the email to use the specified address and the
specified personal name.
|
Email |
Email.setFrom(java.lang.String email,
java.lang.String name,
java.lang.String charset) |
Set the FROM field of the email to use the specified address, personal
name, and charset encoding for the name.
|
HtmlEmail |
HtmlEmail.setHtmlMsg(java.lang.String aHtml) |
Set the HTML content.
|
abstract Email |
Email.setMsg(java.lang.String msg) |
Define the content of the mail.
|
Email |
HtmlEmail.setMsg(java.lang.String msg) |
Set the message.
|
Email |
MultiPartEmail.setMsg(java.lang.String msg) |
Set the message of the email.
|
Email |
SimpleEmail.setMsg(java.lang.String msg) |
Set the content of the mail.
|
Email |
Email.setReplyTo(java.util.Collection<javax.mail.internet.InternetAddress> aCollection) |
Set a list of reply to addresses.
|
HtmlEmail |
HtmlEmail.setTextMsg(java.lang.String aText) |
Set the text content.
|
Email |
Email.setTo(java.util.Collection<javax.mail.internet.InternetAddress> aCollection) |
Set a list of "TO" addresses.
|