public class SmtpSslServer extends SmtpServer<SmtpSslServer>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_SSL_PORT |
static java.lang.String |
MAIL_SMTP_SOCKET_FACTORY_CLASS |
static java.lang.String |
MAIL_SMTP_SOCKET_FACTORY_FALLBACK |
static java.lang.String |
MAIL_SMTP_SOCKET_FACTORY_PORT |
static java.lang.String |
MAIL_SMTP_STARTTLS_ENABLE |
static java.lang.String |
MAIL_SMTP_STARTTLS_REQUIRED |
protected boolean |
plaintextOverTLS |
protected boolean |
startTlsRequired |
authenticator, debug, DEFAULT_SMTP_PORT, host, MAIL_DEBUG, MAIL_HOST, MAIL_MIME_ADDRESS_STRICT, MAIL_SMTP_AUTH, MAIL_SMTP_CONNECTIONTIMEOUT, MAIL_SMTP_FROM, MAIL_SMTP_HOST, MAIL_SMTP_PORT, MAIL_SMTP_TIMEOUT, MAIL_SMTP_WRITETIMEOUT, MAIL_TRANSPORT_PROTOCOL, port, PROTOCOL_SMTP, strictAddress, timeout| Constructor and Description |
|---|
SmtpSslServer(java.lang.String host) |
SmtpSslServer(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
static SmtpSslServer |
create(java.lang.String host) |
static SmtpSslServer |
create(java.lang.String host,
int port) |
protected java.util.Properties |
createSessionProperties()
Creates mail session properties.
|
SmtpSslServer |
plaintextOverTLS(boolean plaintextOverTLS)
When enabled, SMTP socket factory class will be not set,
and Plaintext Authentication over TLS will be enabled.
|
SmtpSslServer |
startTlsRequired(boolean startTlsRequired)
Sets
mail.smtp.starttls.required which according to
Java Mail API means: If true, requires the use of the STARTTLS command. |
authenticateWith, authenticateWith, createSession, debug, getAuthenticator, getHost, getPort, getTimeout, getTransport, properties, property, strictAddress, timeoutpublic static final java.lang.String MAIL_SMTP_STARTTLS_REQUIRED
public static final java.lang.String MAIL_SMTP_STARTTLS_ENABLE
public static final java.lang.String MAIL_SMTP_SOCKET_FACTORY_PORT
public static final java.lang.String MAIL_SMTP_SOCKET_FACTORY_CLASS
public static final java.lang.String MAIL_SMTP_SOCKET_FACTORY_FALLBACK
protected static final int DEFAULT_SSL_PORT
protected boolean startTlsRequired
protected boolean plaintextOverTLS
public SmtpSslServer(java.lang.String host)
public SmtpSslServer(java.lang.String host,
int port)
public static SmtpSslServer create(java.lang.String host)
public static SmtpSslServer create(java.lang.String host, int port)
public SmtpSslServer startTlsRequired(boolean startTlsRequired)
mail.smtp.starttls.required which according to
Java Mail API means: If true, requires the use of the STARTTLS command.
If the server doesn't support the STARTTLS command, or the command fails,
the connect method will fail. Defaults to false.public SmtpSslServer plaintextOverTLS(boolean plaintextOverTLS)
protected java.util.Properties createSessionProperties()
SmtpServercreateSessionProperties in class SmtpServer<SmtpSslServer>Copyright © 2003-2013 Jodd Team