# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Classes
  Class and Description
  org.apache.commons.mail.ByteArrayDataSource since 1.4, use `ByteArrayDataSource` instead

- Deprecated Fields
  Field and Description
  org.apache.commons.mail.EmailConstants.ATTACHMENTS since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.ATTACHMENTS since 1.3, use `EmailConstants.ATTACHMENTS` instead
  org.apache.commons.mail.EmailConstants.CONTENT_TYPE since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.CONTENT_TYPE since 1.3, use `EmailConstants.CONTENT_TYPE` instead
  org.apache.commons.mail.EmailConstants.EMAIL_BODY since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.EMAIL_BODY since 1.3, use `EmailConstants.EMAIL_BODY` instead
  org.apache.commons.mail.EmailConstants.EMAIL_SUBJECT since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.EMAIL_SUBJECT since 1.3, use `EmailConstants.EMAIL_SUBJECT` instead
  org.apache.commons.mail.EmailConstants.FILE_SERVER since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.FILE_SERVER since 1.3, use `EmailConstants.FILE_SERVER` instead
  org.apache.commons.mail.HtmlEmail.inlineImages As of commons-email 1.1, no longer used. Inline embedded objects are now stored in `HtmlEmail.inlineEmbeds`.
  org.apache.commons.mail.Email.ISO_8859_1 since 1.3, use `EmailConstants.ISO_8859_1` instead
  org.apache.commons.mail.Email.KOI8_R since 1.3, use `EmailConstants.KOI8_R` instead
  org.apache.commons.mail.Email.MAIL_DEBUG since 1.3, use `EmailConstants.MAIL_DEBUG` instead
  org.apache.commons.mail.Email.MAIL_HOST since 1.3, use `EmailConstants.MAIL_HOST` instead
  org.apache.commons.mail.Email.MAIL_PORT since 1.3, use `EmailConstants.MAIL_PORT` instead
  org.apache.commons.mail.Email.MAIL_SMTP_AUTH since 1.3, use `EmailConstants.MAIL_SMTP_AUTH` instead
  org.apache.commons.mail.Email.MAIL_SMTP_CONNECTIONTIMEOUT since 1.3, use `EmailConstants.MAIL_SMTP_CONNECTIONTIMEOUT` instead
  org.apache.commons.mail.Email.MAIL_SMTP_FROM since 1.3, use `EmailConstants.MAIL_SMTP_FROM` instead
  org.apache.commons.mail.Email.MAIL_SMTP_PASSWORD since 1.3, use `EmailConstants.MAIL_SMTP_PASSWORD` instead
  org.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_CLASS since 1.3, use `EmailConstants.MAIL_SMTP_SOCKET_FACTORY_CLASS` instead
  org.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_FALLBACK since 1.3, use `EmailConstants.MAIL_SMTP_SOCKET_FACTORY_FALLBACK` instead
  org.apache.commons.mail.Email.MAIL_SMTP_SOCKET_FACTORY_PORT since 1.3, use `EmailConstants.MAIL_SMTP_SOCKET_FACTORY_PORT` instead
  org.apache.commons.mail.Email.MAIL_SMTP_TIMEOUT since 1.3, use `EmailConstants.MAIL_SMTP_TIMEOUT` instead
  org.apache.commons.mail.Email.MAIL_SMTP_USER since 1.3, use `EmailConstants.MAIL_SMTP_USER` instead
  org.apache.commons.mail.Email.MAIL_TRANSPORT_PROTOCOL since 1.3, use `EmailConstants.MAIL_TRANSPORT_PROTOCOL` instead
  org.apache.commons.mail.EmailConstants.MAIL_TRANSPORT_TLS since 1.3
  org.apache.commons.mail.Email.MAIL_TRANSPORT_TLS since 1.3, use `EmailConstants.MAIL_TRANSPORT_TLS` instead
  org.apache.commons.mail.EmailConstants.RECEIVER_EMAIL since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.RECEIVER_EMAIL since 1.3, use `EmailConstants.RECEIVER_EMAIL` instead
  org.apache.commons.mail.EmailConstants.RECEIVER_NAME since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.RECEIVER_NAME since 1.3, use `EmailConstants.RECEIVER_NAME` instead
  org.apache.commons.mail.EmailConstants.SENDER_EMAIL since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.SENDER_EMAIL since 1.3, use `EmailConstants.SENDER_EMAIL` instead
  org.apache.commons.mail.EmailConstants.SENDER_NAME since 1.3, not in use since 1.0
  org.apache.commons.mail.Email.SENDER_NAME since 1.3, use `EmailConstants.SENDER_NAME` instead
  org.apache.commons.mail.Email.SMTP since 1.3, use `EmailConstants.SMTP` instead
  org.apache.commons.mail.Email.ssl since 1.3, use setSSLOnConnect() instead
  org.apache.commons.mail.Email.TEXT_HTML since 1.3, use `EmailConstants.TEXT_HTML` instead
  org.apache.commons.mail.Email.TEXT_PLAIN since 1.3, use `EmailConstants.TEXT_PLAIN` instead
  org.apache.commons.mail.Email.tls since 1.3, use setStartTLSEnabled() instead
  org.apache.commons.mail.Email.US_ASCII since 1.3, use `EmailConstants.US_ASCII` instead

- Deprecated Methods
  Method and Description
  org.apache.commons.mail.Email.isSSL() since 1.3, use isSSLOnConnect() instead
  org.apache.commons.mail.Email.isTLS() since 1.3, use isStartTLSEnabled() instead
  org.apache.commons.mail.Email.setSSL(boolean) since 1.3, use setSSLOnConnect() instead
  org.apache.commons.mail.Email.setTLS(boolean) since 1.3, use setStartTLSEnabled() instead

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.