Java org.apache.commons.mail MultiPartEmail fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.mail MultiPartEmail fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.mail MultiPartEmail.

The text is from its open source code.

Subclass

org.apache.commons.mail.MultiPartEmail has subclasses.
Click this link to see all its subclasses.

Constructor

Method

EmailaddBcc(final String email)
Add a blind BCC recipient to the email.
EmailaddBcc(final String email, final String name)
Add a blind BCC recipient to the email using the specified address and the specified personal name.
EmailaddCc(final String email, final String name)
Add a recipient CC to the email using the specified address and the specified personal name.
EmailaddCc(final String email)
Add a recipient CC to the email.
voidaddHeader(final String name, final String value)
Adds a header ( name, value ) to the headers Map.
EmailaddPart(final String partContent, final String partContentType)
Add a new part to the email.
EmailaddPart(final MimeMultipart multipart, final int index)
Add a new part to the email.
EmailaddPart(final MimeMultipart multipart)
Add a new part to the email.
EmailaddReplyTo(final String email, final String name, final String charset)
Add a reply to address to the email using the specified address, personal name, and charset encoding for the name.
EmailaddReplyTo(final String email, final String name)
Add a reply to address to the email using the specified address and the specified personal name.
EmailaddReplyTo(final String email)
Add a reply to address to the email.
EmailaddTo(final String email)
Add a recipient TO to the email.
EmailaddTo(final String email, final String name)
Add a recipient TO to the email using the specified address and the specified personal name.
EmailaddTo(final String email, final String name, final String charset)
Add a recipient TO to the email using the specified address, personal name, and charset encoding for the name.
MultiPartEmailattach(final File file)
Attach a file.
MultiPartEmailattach(final EmailAttachment attachment)
Attach an EmailAttachment.
MultiPartEmailattach(final URL url, final String name, final String description, final String disposition)
Attach a file located by its URL.
MultiPartEmailattach(final DataSource ds, String name, final String description, final String disposition)
Attach a file specified as a DataSource interface.
MultiPartEmailattach(final URL url, final String name, final String description)
Attach a file located by its URL.
MultiPartEmailattach(final DataSource ds, final String name, final String description)
Attach a file specified as a DataSource interface.
voidbuildMimeMessage()
Does the work of actually building the MimeMessage.
ListgetBccAddresses()
Get the list of "Bcc" addresses.
ListgetCcAddresses()
Get the list of "CC" addresses.
InternetAddressgetFromAddress()
Gets the sender of the email.
StringgetHostName()
Gets the host name of the SMTP server,
SessiongetMailSession()
Determines the mail session used when sending this Email, creating the Session if necessary.
MimeMessagegetMimeMessage()
Returns the internal MimeMessage.
ListgetReplyToAddresses()
Get the list of "Reply-To" addresses.
StringgetSmtpPort()
Gets the listening port of the SMTP server.
StringgetSubject()
Gets the subject of the email.
ListgetToAddresses()
Get the list of "To" addresses.
Stringsend()
Sends the email.
voidsetAuthentication(final String userName, final String password)
Sets the userName and password if authentication is needed.
voidsetAuthenticator(final Authenticator newAuthenticator)
Sets the Authenticator to be used when authentication is requested from the mail server.
EmailsetBcc(final Collection aCollection)
Set a list of "BCC" addresses.
EmailsetBounceAddress(final String email)
Set the "bounce address" - the address to which undeliverable messages will be returned.
EmailsetCc(final Collection aCollection)
Set a list of "CC" addresses.
voidsetCharset(final String newCharset)
Set the charset of the message.
voidsetContent(final Object aObject, final String aContentType)
Set the content and contentType.
voidsetContent(final MimeMultipart aMimeMultipart)
Set the emailBody to a MimeMultiPart
voidsetDebug(final boolean d)
Setting to true will enable the display of debug information.
EmailsetFrom(final String email)
Set the FROM field of the email to use the specified address.
EmailsetFrom(final String email, final String name)
Set the FROM field of the email to use the specified address and the specified personal name.
EmailsetFrom(final String email, final String name, final String charset)
Set the FROM field of the email to use the specified address, personal name, and charset encoding for the name.
voidsetHeaders(final Map map)
Used to specify the mail headers.
voidsetHostName(final String aHostName)
Set the hostname of the outgoing mail server.
voidsetMailSession(final Session aSession)
Supply a mail Session object to use.
EmailsetMsg(final String msg)
Set the message of the email.
voidsetSentDate(final Date date)
Sets the sent date for the email.
voidsetSmtpPort(final int aPortNumber)
Set the port number of the outgoing mail server.
voidsetSSL(final boolean ssl)
Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).
EmailsetSSLCheckServerIdentity(final boolean sslCheckServerIdentity)
Sets whether the server identity is checked as specified by RFC 2595
EmailsetSSLOnConnect(final boolean ssl)
Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).
voidsetSslSmtpPort(final String sslSmtpPort)
Sets the SSL port to use for the SMTP transport.
EmailsetStartTLSEnabled(final boolean startTlsEnabled)
Set or disable the STARTTLS encryption.
EmailsetStartTLSRequired(final boolean startTlsRequired)
Set or disable the required STARTTLS encryption.
EmailsetSubject(final String aSubject)
Set the email subject.
voidsetTLS(final boolean withTLS)
Set or disable the STARTTLS encryption.
EmailsetTo(final Collection aCollection)
Set a list of "TO" addresses.