public class SmtpServer extends MailServer<SendMailSession>
MailServer.Builder| Modifier and Type | Field and Description | 
|---|---|
protected static int | 
DEFAULT_SMTP_PORT
Default SMTP port 
 | 
protected static java.lang.String | 
PROTOCOL_SMTP  | 
attachmentStorage, 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| Modifier | Constructor and Description | 
|---|---|
  | 
SmtpServer(MailServer.Builder builder)  | 
protected  | 
SmtpServer(MailServer.Builder builder,
          int defaultPort)  | 
| Modifier and Type | Method and Description | 
|---|---|
SendMailSession | 
createSession()
Creates new mail session. 
 | 
protected java.util.Properties | 
createSessionProperties()
Creates  
MailSession Properties. | 
protected javax.mail.Transport | 
getTransport(javax.mail.Session session)
Get the  
Transport for Session. | 
createprotected static final java.lang.String PROTOCOL_SMTP
protected static final int DEFAULT_SMTP_PORT
public SmtpServer(MailServer.Builder builder)
protected SmtpServer(MailServer.Builder builder, int defaultPort)
protected java.util.Properties createSessionProperties()
MailServerMailSession Properties.createSessionProperties in class MailServer<SendMailSession>Propertiespublic SendMailSession createSession()
createSession in class MailServer<SendMailSession>SendMailSessionprotected javax.mail.Transport getTransport(javax.mail.Session session)
                                     throws javax.mail.NoSuchProviderException
Transport for Session.session - The SendMailSession.Transport.javax.mail.NoSuchProviderException - If provider for the given protocol is not found.Copyright © 2003-present Jodd Team