| Package | Description |
|---|---|
| org.simplejavamail.mailer |
| Modifier and Type | Method and Description |
|---|---|
static javax.mail.Session |
Mailer.createMailSession(ServerConfig serverConfig,
TransportStrategy transportStrategy)
Instantiates and configures the
Session instance. |
| Constructor and Description |
|---|
Mailer(ServerConfig serverConfig)
Delegates to
Mailer.Mailer(ServerConfig, TransportStrategy, ProxyConfig) and populates as much as possible from the config file (proxy details,
transport strategy) and otherwise defaults to TransportStrategy.SMTP_PLAIN and skipping proxy. |
Mailer(ServerConfig serverConfig,
ProxyConfig proxyConfig)
Delegates to
Mailer.Mailer(ServerConfig, TransportStrategy, ProxyConfig) and tries to populates transport strategy from config file and otherwise
defaults to TransportStrategy.SMTP_PLAIN. |
Mailer(ServerConfig serverConfig,
TransportStrategy transportStrategy)
Delegates to
Mailer.Mailer(ServerConfig, TransportStrategy, ProxyConfig) and tries to populates proxy details from config file and otherwise skips
proxy. |
Mailer(ServerConfig serverConfig,
TransportStrategy transportStrategy,
ProxyConfig proxyConfig)
Main constructor which produces a new
Session on the fly. |
Copyright © 2017. All rights reserved.