public class SmtpSslServer extends SmtpServer
MailServer.Builder| Modifier and Type | Field and Description | 
|---|---|
protected static int | 
DEFAULT_SSL_PORT
Default SMTP SSL port. 
 | 
protected boolean | 
plaintextOverTLS
Defaults to  
false. | 
protected boolean | 
startTlsRequired
Defaults to  
false. | 
DEFAULT_SMTP_PORT, PROTOCOL_SMTPattachmentStorage, authenticator, customProperties, debugMode, host, MAIL_DEBUG, MAIL_HOST, MAIL_IMAP_CONNECTIONTIMEOUT, MAIL_IMAP_HOST, MAIL_IMAP_PARTIALFETCH, MAIL_IMAP_PORT, MAIL_IMAP_SOCKET_FACTORY_CLASS, MAIL_IMAP_SOCKET_FACTORY_FALLBACK, MAIL_IMAP_SOCKET_FACTORY_PORT, MAIL_IMAP_TIMEOUT, MAIL_MIME_ADDRESS_STRICT, MAIL_POP3_AUTH, MAIL_POP3_CONNECTIONTIMEOUT, MAIL_POP3_HOST, MAIL_POP3_PORT, MAIL_POP3_SOCKET_FACTORY_CLASS, MAIL_POP3_SOCKET_FACTORY_FALLBACK, MAIL_POP3_SOCKET_FACTORY_PORT, MAIL_POP3_TIMEOUT, MAIL_SMTP_AUTH, MAIL_SMTP_CONNECTIONTIMEOUT, MAIL_SMTP_HOST, MAIL_SMTP_PORT, MAIL_SMTP_SOCKET_FACTORY_CLASS, MAIL_SMTP_SOCKET_FACTORY_FALLBACK, MAIL_SMTP_SOCKET_FACTORY_PORT, MAIL_SMTP_STARTTLS_ENABLE, MAIL_SMTP_STARTTLS_REQUIRED, MAIL_SMTP_TIMEOUT, MAIL_SMTP_WRITETIMEOUT, MAIL_TRANSPORT_PROTOCOL, port, strictAddress, timeout| Constructor and Description | 
|---|
SmtpSslServer(MailServer.Builder builder)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.util.Properties | 
createSessionProperties()
Creates  
MailSession Properties. | 
SmtpSslServer | 
plaintextOverTLS(boolean plaintextOverTLS)
When enabled,  
MAIL_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. | 
createSession, getTransportcreateprotected static final int DEFAULT_SSL_PORT
protected boolean startTlsRequired
false.protected boolean plaintextOverTLS
false. Google requires it to be falsepublic SmtpSslServer(MailServer.Builder builder)
public SmtpSslServer startTlsRequired(boolean startTlsRequired)
mail.smtp.starttls.required.
 
 If the server doesn't support the STARTTLS command, or the command fails,
 the connect method will fail. Defaults to false.
startTlsRequired - If true, requires the use of the STARTTLS command.public SmtpSslServer plaintextOverTLS(boolean plaintextOverTLS)
MAIL_SMTP_SOCKET_FACTORY_CLASS will be not set,
 and Plaintext Authentication over TLS will be enabled.plaintextOverTLS - true when plain text authentication over TLS should be enabled.protected java.util.Properties createSessionProperties()
MailServerMailSession Properties.createSessionProperties in class SmtpServerPropertiesCopyright © 2003-present Jodd Team