Uses of Class
org.apache.commons.mail2.jakarta.Email
Package
Description
Commons-Email aims to provide a API for sending email.
-
Uses of Email in org.apache.commons.mail2.jakarta
Modifier and TypeClassDescriptionclass
An HTML multipart email.class
Small wrapper class on top of HtmlEmail which encapsulates the required logic to retrieve images that are contained in "<img src=../>" elements in the HTML code.class
A multipart email.class
Sends simple Internet email messages without attachments.Modifier and TypeMethodDescriptionAdds a blind BCC recipient to the email.Adds an array of blind BCC recipients to the email.Adds a blind BCC recipient to the email using the specified address and the specified personal name.Adds a blind BCC recipient to the email using the specified address, personal name, and charset encoding for the name.Adds a recipient CC to the email.Adds an array of CC recipients to the email.Adds a recipient CC to the email using the specified address and the specified personal name.Adds a recipient CC to the email using the specified address, personal name, and charset encoding for the name.MultiPartEmail.addPart
(jakarta.mail.internet.MimeMultipart multipart) Adds a new part to the email.MultiPartEmail.addPart
(jakarta.mail.internet.MimeMultipart multipart, int index) Adds a new part to the email.Adds a new part to the email.Email.addReplyTo
(String email) Adds a reply to address to the email.Email.addReplyTo
(String email, String name) Adds a reply to address to the email using the specified address and the specified personal name.Email.addReplyTo
(String email, String name, String charset) Adds a reply to address to the email using the specified address, personal name, and charset encoding for the name.Adds a recipient TO to the email.Adds a list of TO recipients to the email.Adds a recipient TO to the email using the specified address and the specified personal name.Adds a recipient TO to the email using the specified address, personal name, and charset encoding for the name.Email.setBcc
(Collection<jakarta.mail.internet.InternetAddress> collection) Sets a list of "BCC" addresses.Email.setBounceAddress
(String email) Sets the "bounce address" - the address to which undeliverable messages will be returned.Email.setCc
(Collection<jakarta.mail.internet.InternetAddress> collection) Sets a list of "CC" addresses.Email.setContent
(Object content) Sets the content.Email.setContentType
(String contentType) Sets the content type.Sets the FROM field of the email to use the specified address.Sets the FROM field of the email to use the specified address and the specified personal name.Sets the FROM field of the email to use the specified address, personal name, and charset encoding for the name.Email.setFromAddress
(jakarta.mail.internet.InternetAddress fromAddress) Sets the From address.abstract Email
Sets the content of the mail.Sets the message.Sets the message of the email.Sets the content of the mail.Email.setPopBeforeSmtp
(boolean popBeforeSmtp) Sets whether to use POP3 before SMTP, and if so the settings.Email.setPopHost
(String popHost) Sets the POP3 host.Email.setPopPassword
(String popPassword) Sets the POP3 password.Email.setPopUsername
(String popUserName) Sets the POP3 user name.Email.setReplyTo
(Collection<jakarta.mail.internet.InternetAddress> collection) Sets a list of reply to addresses.Email.setSendPartial
(boolean sendPartial) Sets whether the email is partially send in case of invalid addresses.Email.setSSLCheckServerIdentity
(boolean sslCheckServerIdentity) Sets whether the server identity is checked as specified by RFC 2595Email.setSSLOnConnect
(boolean ssl) Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).Email.setStartTLSEnabled
(boolean startTlsEnabled) Sets or disable the STARTTLS encryption.Email.setStartTLSRequired
(boolean startTlsRequired) Sets or disable the required STARTTLS encryption.Email.setSubject
(String aSubject) Sets the email subject.Email.setTo
(Collection<jakarta.mail.internet.InternetAddress> collection) Sets a list of "TO" addresses.