# Deprecated API

## Contents

- Classes
- Fields
- Methods

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

- Deprecated Fields
  Field
  Description
  org.apache.commons.mail.Email.ATTACHMENTS
  since 1.3, use `EmailConstants.ATTACHMENTS` instead
  org.apache.commons.mail.Email.authenticator
  Use getters and getters.
  org.apache.commons.mail.Email.bccList
  Use getters and getters.
  org.apache.commons.mail.Email.bounceAddress
  Use getters and getters.
  org.apache.commons.mail.Email.ccList
  Use getters and getters.
  org.apache.commons.mail.Email.charset
  Use getters and getters.
  org.apache.commons.mail.Email.content
  Use getters and getters.
  org.apache.commons.mail.Email.CONTENT_TYPE
  since 1.3, use `EmailConstants.CONTENT_TYPE` instead
  org.apache.commons.mail.Email.contentType
  Use getters and getters.
  org.apache.commons.mail.Email.debug
  Use getters and getters.
  org.apache.commons.mail.Email.EMAIL_BODY
  since 1.3, use `EmailConstants.EMAIL_BODY` instead
  org.apache.commons.mail.Email.EMAIL_SUBJECT
  since 1.3, use `EmailConstants.EMAIL_SUBJECT` instead
  org.apache.commons.mail.Email.emailBody
  Use getters and getters.
  org.apache.commons.mail.Email.FILE_SERVER
  since 1.3, use `EmailConstants.FILE_SERVER` instead
  org.apache.commons.mail.Email.fromAddress
  Use getters and getters.
  org.apache.commons.mail.Email.headers
  Use getters and getters.
  org.apache.commons.mail.Email.hostName
  Use getters and getters.
  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.Email.MAIL_TRANSPORT_TLS
  since 1.3, use `EmailConstants.MAIL_TRANSPORT_TLS` instead
  org.apache.commons.mail.Email.message
  Use getters and getters.
  org.apache.commons.mail.Email.popBeforeSmtp
  Use getters and getters.
  org.apache.commons.mail.Email.popHost
  Use getters and getters.
  org.apache.commons.mail.Email.popPassword
  Use getters and getters.
  org.apache.commons.mail.Email.popUsername
  Use getters and getters.
  org.apache.commons.mail.Email.RECEIVER_EMAIL
  since 1.3, use `EmailConstants.RECEIVER_EMAIL` instead
  org.apache.commons.mail.Email.RECEIVER_NAME
  since 1.3, use `EmailConstants.RECEIVER_NAME` instead
  org.apache.commons.mail.Email.replyList
  Use getters and getters.
  org.apache.commons.mail.Email.SENDER_EMAIL
  since 1.3, use `EmailConstants.SENDER_EMAIL` instead
  org.apache.commons.mail.Email.SENDER_NAME
  since 1.3, use `EmailConstants.SENDER_NAME` instead
  org.apache.commons.mail.Email.sentDate
  Use getters and getters.
  org.apache.commons.mail.Email.SMTP
  since 1.3, use `EmailConstants.SMTP` instead
  org.apache.commons.mail.Email.smtpPort
  Use getters and getters.
  org.apache.commons.mail.Email.socketConnectionTimeout
  Use `Email.getSocketConnectionTimeout()` and `Email.setSocketConnectionTimeout(Duration)`.
  org.apache.commons.mail.Email.socketTimeout
  Use `Email.getSocketTimeout()` and `Email.setSocketTimeout(Duration)`.
  org.apache.commons.mail.Email.ssl
  since 1.3, use setSSLOnConnect() instead
  org.apache.commons.mail.Email.sslSmtpPort
  Use getters and getters.
  org.apache.commons.mail.Email.subject
  Use getters and getters.
  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.toList
  Use getters and getters.
  org.apache.commons.mail.Email.US_ASCII
  since 1.3, use `EmailConstants.US_ASCII` instead
  org.apache.commons.mail.EmailConstants.ATTACHMENTS
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.CONTENT_TYPE
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.EMAIL_BODY
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.EMAIL_SUBJECT
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.FILE_SERVER
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.MAIL_TRANSPORT_TLS
  since 1.3
  org.apache.commons.mail.EmailConstants.RECEIVER_EMAIL
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.RECEIVER_NAME
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.SENDER_EMAIL
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.SENDER_NAME
  since 1.3, not in use since 1.0
  org.apache.commons.mail.EmailConstants.SOCKET_TIMEOUT_MS
  Use `EmailConstants.SOCKET_TIMEOUT`.
  org.apache.commons.mail.HtmlEmail.html
  Use getters and getters.
  org.apache.commons.mail.HtmlEmail.inlineEmbeds
  Use getters and getters.
  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.HtmlEmail.text
  Use getters and getters.

- Deprecated Methods
  Method
  Description
  org.apache.commons.mail.Email.isSSL()
  since 1.3, use `Email.isSSLOnConnect()` instead.
  org.apache.commons.mail.Email.isTLS()
  since 1.3, use `Email.isStartTLSEnabled()` instead.
  org.apache.commons.mail.Email.setSocketConnectionTimeout(int)
  Use `Email.setSocketConnectionTimeout(Duration)`.
  org.apache.commons.mail.Email.setSocketTimeout(int)
  Use `Email.setSocketTimeout(Duration)`.
  org.apache.commons.mail.Email.setSSL(boolean)
  since 1.3, use `Email.setSSLOnConnect(boolean)` instead.
  org.apache.commons.mail.Email.setTLS(boolean)
  since 1.3, use `Email.setStartTLSEnabled(boolean)` instead.