Example usage for Java org.apache.commons.mail ImageHtmlEmail fields, constructors, methods, implement or subclass
The text is from its open source code.
addBcc(final String email) Add a blind BCC recipient to the email. | |
addCc(final String email) Add a recipient CC to the email. | |
addReplyTo(final String email) Add a reply to address to the email. | |
addTo(final String email) Add a recipient TO to the email. | |
MultiPartEmail | attach(final URL url, final String name, final String description) Attach a file located by its URL. |
MultiPartEmail | attach(final File file) Attach a file. |
String | embed(final File file) Embeds a file in the HTML. |
Session | getMailSession() Determines the mail session used when sending this Email, creating the Session if necessary. |
String | send() Sends the email. |
void | setAuthentication(final String userName, final String password) Sets the userName and password if authentication is needed. |
void | setAuthenticator(final Authenticator newAuthenticator) Sets the Authenticator to be used when authentication is requested from the mail server. |
setBounceAddress(final String email) Set the "bounce address" - the address to which undeliverable messages will be returned. | |
void | setDataSourceResolver(final DataSourceResolver dataSourceResolver) Set the data source resolver. |
void | setDebug(final boolean d) Setting to true will enable the display of debug information. |
setFrom(final String email, final String name) Set the FROM field of the email to use the specified address and the specified personal name. | |
setFrom(final String email) Set the FROM field of the email to use the specified address. | |
void | setHostName(final String aHostName) Set the hostname of the outgoing mail server. |
HtmlEmail | setHtmlMsg(final String aHtml) Set the HTML content. |
void | setSmtpPort(final int aPortNumber) Set the port number of the outgoing mail server. |
void | setSocketConnectionTimeout(final int socketConnectionTimeout) Set the socket connection timeout value in milliseconds. |
void | setSocketTimeout(final int socketTimeout) Set the socket I/O timeout value in milliseconds. |
setSSLOnConnect(final boolean ssl) Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS). | |
setStartTLSEnabled(final boolean startTlsEnabled) Set or disable the STARTTLS encryption. | |
setStartTLSRequired(final boolean startTlsRequired) Set or disable the required STARTTLS encryption. | |
setSubject(final String aSubject) Set the email subject. | |
HtmlEmail | setTextMsg(final String aText) Set the text content. |