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

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

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

  Subclasses of MultiPartEmail 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.
  Methods in org.apache.commons.mail that return MultiPartEmail
  Modifier and Type
  Method
  Description
  `MultiPartEmail`
  MultiPartEmail.`attach(File file)`
  Attaches a file.
  `MultiPartEmail`
  MultiPartEmail.`attach(URL url, String name, String description)`
  Attaches a file located by its URL.
  `MultiPartEmail`
  MultiPartEmail.`attach(URL url, String name, String description, String disposition)`
  Attaches a file located by its URL.
  `MultiPartEmail`
  MultiPartEmail.`attach(Path file, OpenOption... options)`
  Attaches a path.
  `MultiPartEmail`
  MultiPartEmail.`attach(DataSource dataSource, String name, String description)`
  Attaches a file specified as a DataSource interface.
  `MultiPartEmail`
  MultiPartEmail.`attach(DataSource dataSource, String name, String description, String disposition)`
  Attaches a file specified as a DataSource interface.
  `MultiPartEmail`
  MultiPartEmail.`attach(EmailAttachment attachment)`
  Attaches an EmailAttachment.