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