# Uses of Class
org.apache.commons.mail.Email

Packages that use Email
Package
Description
org.apache.commons.mail
Commons-Email aims to provide a API for sending email.

- ## Uses of Email in org.apache.commons.mail

  Subclasses of Email in org.apache.commons.mail
  Modifier and Type
  Class
  Description
  `class`
  `HtmlEmail`
  An HTML multipart email.
  `class`
  `ImageHtmlEmail`
  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`
  `MultiPartEmail`
  A multipart email.
  `class`
  `SimpleEmail`
  Sends simple Internet email messages without attachments.
  Methods in org.apache.commons.mail that return Email
  Modifier and Type
  Method
  Description
  `Email`
  Email.`addBcc(String email)`
  Adds a blind BCC recipient to the email.
  `Email`
  Email.`addBcc(String... emails)`
  Adds an array of blind BCC recipients to the email.
  `Email`
  Email.`addBcc(String email, String name)`
  Adds 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)`
  Adds a blind BCC recipient to the email using the specified address, personal name, and charset encoding for the name.
  `Email`
  Email.`addCc(String email)`
  Adds a recipient CC to the email.
  `Email`
  Email.`addCc(String... emails)`
  Adds an array of CC recipients to the email.
  `Email`
  Email.`addCc(String email, String name)`
  Adds a recipient CC to the email using the specified address and the specified personal name.
  `Email`
  Email.`addCc(String email, String name, String charset)`
  Adds a recipient CC to the email using the specified address, personal name, and charset encoding for the name.
  `Email`
  MultiPartEmail.`addPart(String partContent, String partContentType)`
  Adds a new part to the email.
  `Email`
  MultiPartEmail.`addPart(MimeMultipart multipart)`
  Adds a new part to the email.
  `Email`
  MultiPartEmail.`addPart(MimeMultipart multipart, int index)`
  Adds a new part to the email.
  `Email`
  Email.`addReplyTo(String email)`
  Adds a reply to address to the email.
  `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`
  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.
  `Email`
  Email.`addTo(String email)`
  Adds a recipient TO to the email.
  `Email`
  Email.`addTo(String... emails)`
  Adds a list of TO recipients to the email.
  `Email`
  Email.`addTo(String email, String name)`
  Adds a recipient TO to the email using the specified address and the specified personal name.
  `Email`
  Email.`addTo(String email, String name, String charset)`
  Adds a recipient TO to the email using the specified address, personal name, and charset encoding for the name.
  `Email`
  Email.`setBcc(Collection<InternetAddress> collection)`
  Sets a list of "BCC" addresses.
  `Email`
  Email.`setBounceAddress(String email)`
  Sets the "bounce address" - the address to which undeliverable messages will be returned.
  `Email`
  Email.`setCc(Collection<InternetAddress> collection)`
  Sets a list of "CC" addresses.
  `Email`
  Email.`setContent(Object content)`
  Sets the content.
  `Email`
  Email.`setContentType(String contentType)`
  Sets the content type.
  `Email`
  Email.`setFrom(String email)`
  Sets the FROM field of the email to use the specified address.
  `Email`
  Email.`setFrom(String email, String name)`
  Sets 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)`
  Sets the FROM field of the email to use the specified address, personal name, and charset encoding for the name.
  `Email`
  Email.`setFromAddress(InternetAddress fromAddress)`
  Sets the From address.
  `abstract Email`
  Email.`setMsg(String msg)`
  Sets the content of the mail.
  `Email`
  HtmlEmail.`setMsg(String msg)`
  Sets the message.
  `Email`
  MultiPartEmail.`setMsg(String msg)`
  Sets the message of the email.
  `Email`
  SimpleEmail.`setMsg(String msg)`
  Sets the content of the mail.
  `Email`
  Email.`setPopBeforeSmtp(boolean popBeforeSmtp)`
  Sets whether to use POP3 before SMTP, and if so the settings.
  `Email`
  Email.`setPopHost(String popHost)`
  Sets the POP3 host.
  `Email`
  Email.`setPopPassword(String popPassword)`
  Sets the POP3 password.
  `Email`
  Email.`setPopUsername(String popUserName)`
  Sets the POP3 user name.
  `Email`
  Email.`setReplyTo(Collection<InternetAddress> collection)`
  Sets a list of reply to addresses.
  `Email`
  Email.`setSendPartial(boolean sendPartial)`
  Sets whether the email is partially send in case of invalid addresses.
  `Email`
  Email.`setSSLCheckServerIdentity(boolean sslCheckServerIdentity)`
  Sets whether the server identity is checked as specified by RFC 2595
  `Email`
  Email.`setSSLOnConnect(boolean ssl)`
  Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).
  `Email`
  Email.`setStartTLSEnabled(boolean startTlsEnabled)`
  Sets or disable the STARTTLS encryption.
  `Email`
  Email.`setStartTLSRequired(boolean startTlsRequired)`
  Sets or disable the required STARTTLS encryption.
  `Email`
  Email.`setSubject(String aSubject)`
  Sets the email subject.
  `Email`
  Email.`setTo(Collection<InternetAddress> collection)`
  Sets a list of "TO" addresses.