Package org.apache.commons.mail
Class EmailConstants
java.lang.Object
org.apache.commons.mail.EmailConstants
Constants used by Email classes.
A description of the mail session parameter you find at
http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html.
- Since:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
charset constant for iso-8859-1static final String
charset constant for koi8-rstatic final String
The debug mode to be used.static final String
The from email address.static final String
The host name of the mail server.static final String
Defines the default mime charset to use when none has been specified for the message.static final String
The port number of the mail server.static final String
If set to true, tries to authenticate the user using the AUTH command.static final String
Socket connection timeout value in milliseconds.static final String
The email address to use for SMTP MAIL command.static final String
The SMTP password.static final String
If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException.static final String
Specifies theSocketFactory
class to create smtp sockets.static final String
Whether to useSocket
as a fallback if the initial connection fails or not.static final String
Specifies the port to connect to when using a socket factory.static final String
If set to true, check the server identity as specified in RFC 2595.static final String
If set to true, use SSL to connect and use the SSL port by default.static final String
Specifies theSSLSocketFactory
class to use to create SMTP SSL sockets.static final String
Specifies the port to connect to when using the SMTP SSL socket factory.static final String
Socket I/O timeout value in milliseconds.static final String
The SMTP user name.static final String
If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException.static final String
Specifies the default transport protocolstatic final String
Indicates if the STARTTLS command shall be used to initiate a TLS-secured connection.static final String
If true, requires the use of the STARTTLS command.static final String
Deprecated.since 1.3static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
Deprecated.since 1.3, not in use since 1.0static final String
the value to use SMTP as transport protocolstatic final int
Default socket timeout.static final String
defines the text/html content typestatic final String
defines the text/plain content typestatic final String
defines the html subtypestatic final String
charset constant for us-asciistatic final String
charset constant for utf-8 -
Method Summary
-
Field Details
-
SENDER_EMAIL
Deprecated.since 1.3, not in use since 1.0- See Also:
-
SENDER_NAME
Deprecated.since 1.3, not in use since 1.0- See Also:
-
RECEIVER_EMAIL
Deprecated.since 1.3, not in use since 1.0- See Also:
-
RECEIVER_NAME
Deprecated.since 1.3, not in use since 1.0- See Also:
-
EMAIL_SUBJECT
Deprecated.since 1.3, not in use since 1.0- See Also:
-
EMAIL_BODY
Deprecated.since 1.3, not in use since 1.0- See Also:
-
CONTENT_TYPE
Deprecated.since 1.3, not in use since 1.0- See Also:
-
ATTACHMENTS
Deprecated.since 1.3, not in use since 1.0- See Also:
-
FILE_SERVER
Deprecated.since 1.3, not in use since 1.0- See Also:
-
KOI8_R
charset constant for koi8-r- See Also:
-
ISO_8859_1
charset constant for iso-8859-1- See Also:
-
US_ASCII
charset constant for us-ascii- See Also:
-
UTF_8
charset constant for utf-8- See Also:
-
MAIL_DEBUG
The debug mode to be used.- See Also:
-
MAIL_HOST
The host name of the mail server.- See Also:
-
MAIL_PORT
The port number of the mail server.- See Also:
-
MAIL_SMTP_FROM
The email address to use for SMTP MAIL command.- See Also:
-
MAIL_SMTP_AUTH
If set to true, tries to authenticate the user using the AUTH command.- See Also:
-
MAIL_SMTP_USER
The SMTP user name.- See Also:
-
MAIL_SMTP_PASSWORD
The SMTP password.- See Also:
-
MAIL_TRANSPORT_PROTOCOL
Specifies the default transport protocol- See Also:
-
SMTP
the value to use SMTP as transport protocol- See Also:
-
TEXT_HTML
defines the text/html content type- See Also:
-
TEXT_SUBTYPE_HTML
defines the html subtype- See Also:
-
TEXT_PLAIN
defines the text/plain content type- See Also:
-
MAIL_TRANSPORT_TLS
Deprecated.since 1.3- See Also:
-
MAIL_TRANSPORT_STARTTLS_ENABLE
Indicates if the STARTTLS command shall be used to initiate a TLS-secured connection.- Since:
- 1.1
- See Also:
-
MAIL_SMTP_SOCKET_FACTORY_FALLBACK
Whether to useSocket
as a fallback if the initial connection fails or not.- Since:
- 1.1
- See Also:
-
MAIL_SMTP_SOCKET_FACTORY_CLASS
Specifies theSocketFactory
class to create smtp sockets.- Since:
- 1.1
- See Also:
-
MAIL_SMTP_SOCKET_FACTORY_PORT
Specifies the port to connect to when using a socket factory.- Since:
- 1.1
- See Also:
-
MAIL_SMTP_CONNECTIONTIMEOUT
Socket connection timeout value in milliseconds. Default is infinite timeout.- Since:
- 1.2
- See Also:
-
MAIL_SMTP_TIMEOUT
Socket I/O timeout value in milliseconds. Default is infinite timeout.- Since:
- 1.2
- See Also:
-
SOCKET_TIMEOUT_MS
public static final int SOCKET_TIMEOUT_MSDefault socket timeout.- Since:
- 1.3
- See Also:
-
MAIL_TRANSPORT_STARTTLS_REQUIRED
If true, requires the use of the STARTTLS command. If the server doesn't support the STARTTLS command, the connection will fail.- Since:
- 1.3
- See Also:
-
MAIL_SMTP_SSL_ENABLE
If set to true, use SSL to connect and use the SSL port by default.- Since:
- 1.3
- See Also:
-
MAIL_SMTP_SSL_CHECKSERVERIDENTITY
If set to true, check the server identity as specified in RFC 2595.- Since:
- 1.3
- See Also:
-
MAIL_SMTP_SSL_SOCKET_FACTORY_CLASS
Specifies theSSLSocketFactory
class to use to create SMTP SSL sockets.- Since:
- 1.3
- See Also:
-
MAIL_SMTP_SSL_SOCKET_FACTORY_PORT
Specifies the port to connect to when using the SMTP SSL socket factory.- Since:
- 1.3
- See Also:
-
MAIL_SMTP_SEND_PARTIAL
If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException. If set to false (the default), the message is not sent to any of the recipients if there is an invalid recipient address.- Since:
- 1.3.2
- See Also:
-
MAIL_SMTPS_SEND_PARTIAL
If set to true, and a message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException. If set to false (the default), the message is not sent to any of the recipients if there is an invalid recipient address.- Since:
- 1.3.2
- See Also:
-
MAIL_MIME_CHARSET
Defines the default mime charset to use when none has been specified for the message.- Since:
- 1.3.2
- See Also:
-
MAIL_FROM
The from email address.- Since:
- 1.4
- See Also:
-