# Package org.apache.commons.mail

package org.apache.commons.mail
Commons-Email aims to provide a API for sending email. It is built on top of the Java Mail API, which it aims to simplify. All help is gratefully received.

- Related Packages
  Package
  Description
  org.apache.commons.mail.activation
  Contains JavaBeans Activation Framework implementations.
  org.apache.commons.mail.resolver
  Contains implementation classes to resolve data sources from the following locations: class path file system URL
  org.apache.commons.mail.util
  This package provides some utility classes.
- Class
  Description
  ByteArrayDataSource
  Deprecated.
  since 1.4, use `ByteArrayDataSource` or `SharedByteArrayInputStream`.
  DataSourceResolver
  Creates a `DataSource` based on an URL.
  DefaultAuthenticator
  This is a very simple authentication object that can be used for any transport needing basic userName and password type authentication.
  Email
  The abstract class for all email messages.
  EmailAttachment
  This class models an email attachment.
  EmailConstants
  Constants used by Email classes.
  EmailException
  Exception thrown when a checked error occurs in commons-email.
  HtmlEmail
  An HTML multipart email.
  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.
  MultiPartEmail
  A multipart email.
  SimpleEmail
  Sends simple Internet email messages without attachments.