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

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

    Modifier and Type
    Class
    Description
    class 
    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 
    This class is used to send simple internet email messages without attachments.
    Methods in org.apache.commons.mail that return Email
    Modifier and Type
    Method
    Description
    Email.addBcc(String email)
    Add a blind BCC recipient to the email.
    Email.addBcc(String... emails)
    Add an array of blind BCC recipients to the email.
    Email.addBcc(String email, String name)
    Add a blind BCC recipient to the email using the specified address and the specified personal name.
    Email.addBcc(String email, String name, String charset)
    Add a blind BCC recipient to the email using the specified address, personal name, and charset encoding for the name.
    Email.addCc(String email)
    Add a recipient CC to the email.
    Email.addCc(String... emails)
    Add an array of CC recipients to the email.
    Email.addCc(String email, String name)
    Add a recipient CC to the email using the specified address and the specified personal name.
    Email.addCc(String email, String name, String charset)
    Add a recipient CC to the email using the specified address, personal name, and charset encoding for the name.
    MultiPartEmail.addPart(String partContent, String partContentType)
    Add a new part to the email.
    MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart)
    Add a new part to the email.
    MultiPartEmail.addPart(javax.mail.internet.MimeMultipart multipart, int index)
    Add a new part to the email.
    Email.addReplyTo(String email)
    Add a reply to address to the email.
    Email.addReplyTo(String email, String name)
    Add a reply to address to the email using the specified address and the specified personal name.
    Email.addReplyTo(String email, String name, String charset)
    Add a reply to address to the email using the specified address, personal name, and charset encoding for the name.
    Email.addTo(String email)
    Add a recipient TO to the email.
    Email.addTo(String... emails)
    Add a list of TO recipients to the email.
    Email.addTo(String email, String name)
    Add a recipient TO to the email using the specified address and the specified personal name.
    Email.addTo(String email, String name, String charset)
    Add a recipient TO to the email using the specified address, personal name, and charset encoding for the name.
    Email.setBcc(Collection<javax.mail.internet.InternetAddress> aCollection)
    Set a list of "BCC" addresses.
    Email.setBounceAddress(String email)
    Set the "bounce address" - the address to which undeliverable messages will be returned.
    Email.setCc(Collection<javax.mail.internet.InternetAddress> aCollection)
    Set a list of "CC" addresses.
    Email.setFrom(String email)
    Set the FROM field of the email to use the specified address.
    Email.setFrom(String email, String name)
    Set the FROM field of the email to use the specified address and the specified personal name.
    Email.setFrom(String email, String name, String charset)
    Set the FROM field of the email to use the specified address, personal name, and charset encoding for the name.
    abstract Email
    Email.setMsg(String msg)
    Define the content of the mail.
    HtmlEmail.setMsg(String msg)
    Set the message.
    MultiPartEmail.setMsg(String msg)
    Set the message of the email.
    SimpleEmail.setMsg(String msg)
    Set the content of the mail.
    Email.setReplyTo(Collection<javax.mail.internet.InternetAddress> aCollection)
    Set 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 2595
    Email.setSSLOnConnect(boolean ssl)
    Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon connection (SMTPS/POPS).
    Email.setStartTLSEnabled(boolean startTlsEnabled)
    Set or disable the STARTTLS encryption.
    Email.setStartTLSRequired(boolean startTlsRequired)
    Set or disable the required STARTTLS encryption.
    Email.setSubject(String aSubject)
    Sets the email subject.
    Email.setTo(Collection<javax.mail.internet.InternetAddress> aCollection)
    Set a list of "TO" addresses.