Class EmailConstants

    • Field Detail

      • MAIL_SMTP_FROM

        public static final String MAIL_SMTP_FROM
        The email address to use for SMTP MAIL command.
        See Also:
        Constant Field Values
      • MAIL_SMTP_AUTH

        public static final String MAIL_SMTP_AUTH
        If set to true, tries to authenticate the user using the AUTH command.
        See Also:
        Constant Field Values
      • MAIL_TRANSPORT_PROTOCOL

        public static final String MAIL_TRANSPORT_PROTOCOL
        Specifies the default transport protocol
        See Also:
        Constant Field Values
      • MAIL_TRANSPORT_STARTTLS_ENABLE

        public static final String MAIL_TRANSPORT_STARTTLS_ENABLE
        Indicates if the STARTTLS command shall be used to initiate a TLS-secured connection.
        Since:
        1.1
        See Also:
        Constant Field Values
      • MAIL_SMTP_SOCKET_FACTORY_FALLBACK

        public static final String MAIL_SMTP_SOCKET_FACTORY_FALLBACK
        Whether to use Socket as a fallback if the initial connection fails or not.
        Since:
        1.1
        See Also:
        Constant Field Values
      • MAIL_SMTP_SOCKET_FACTORY_PORT

        public static final String MAIL_SMTP_SOCKET_FACTORY_PORT
        Specifies the port to connect to when using a socket factory.
        Since:
        1.1
        See Also:
        Constant Field Values
      • MAIL_SMTP_CONNECTIONTIMEOUT

        public static final String MAIL_SMTP_CONNECTIONTIMEOUT
        Socket connection timeout value in milliseconds. Default is infinite timeout.
        Since:
        1.2
        See Also:
        Constant Field Values
      • MAIL_SMTP_TIMEOUT

        public static final String MAIL_SMTP_TIMEOUT
        Socket I/O timeout value in milliseconds. Default is infinite timeout.
        Since:
        1.2
        See Also:
        Constant Field Values
      • SOCKET_TIMEOUT_MS

        public static final int SOCKET_TIMEOUT_MS
        Default socket timeout.
        Since:
        1.3
        See Also:
        Constant Field Values
      • MAIL_TRANSPORT_STARTTLS_REQUIRED

        public static final String 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:
        Constant Field Values
      • MAIL_SMTP_SSL_ENABLE

        public static final String MAIL_SMTP_SSL_ENABLE
        If set to true, use SSL to connect and use the SSL port by default.
        Since:
        1.3
        See Also:
        Constant Field Values
      • MAIL_SMTP_SSL_CHECKSERVERIDENTITY

        public static final String MAIL_SMTP_SSL_CHECKSERVERIDENTITY
        If set to true, check the server identity as specified in RFC 2595.
        Since:
        1.3
        See Also:
        Constant Field Values
      • MAIL_SMTP_SSL_SOCKET_FACTORY_PORT

        public static final String MAIL_SMTP_SSL_SOCKET_FACTORY_PORT
        Specifies the port to connect to when using the SMTP SSL socket factory.
        Since:
        1.3
        See Also:
        Constant Field Values
      • MAIL_SMTP_SEND_PARTIAL

        public static final String 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:
        Constant Field Values
      • MAIL_SMTPS_SEND_PARTIAL

        public static final String 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:
        Constant Field Values
      • MAIL_MIME_CHARSET

        public static final String MAIL_MIME_CHARSET
        Defines the default mime charset to use when none has been specified for the message.
        Since:
        1.3.2
        See Also:
        Constant Field Values