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

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

Introduction

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

The text is from its open source code.

Constructor

Method

EmailaddBcc(final String email)
Add a blind BCC recipient to the email.
EmailaddCc(final String email)
Add a recipient CC to the email.
EmailaddReplyTo(final String email)
Add a reply to address to the email.
EmailaddTo(final String email)
Add a recipient TO to the email.
MultiPartEmailattach(final URL url, final String name, final String description)
Attach a file located by its URL.
MultiPartEmailattach(final File file)
Attach a file.
Stringembed(final File file)
Embeds a file in the HTML.
SessiongetMailSession()
Determines the mail session used when sending this Email, creating the Session if necessary.
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.
EmailsetBounceAddress(final String email)
Set the "bounce address" - the address to which undeliverable messages will be returned.
voidsetDataSourceResolver(final DataSourceResolver dataSourceResolver)
Set the data source resolver.
voidsetDebug(final boolean d)
Setting to true will enable the display of debug information.
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)
Set the FROM field of the email to use the specified address.
voidsetHostName(final String aHostName)
Set the hostname of the outgoing mail server.
HtmlEmailsetHtmlMsg(final String aHtml)
Set the HTML content.
voidsetSmtpPort(final int aPortNumber)
Set the port number of the outgoing mail server.
voidsetSocketConnectionTimeout(final int socketConnectionTimeout)
Set the socket connection timeout value in milliseconds.
voidsetSocketTimeout(final int socketTimeout)
Set the socket I/O timeout value in milliseconds.
EmailsetSSLOnConnect(final boolean ssl)
Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).
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.
HtmlEmailsetTextMsg(final String aText)
Set the text content.