| Package | Description |
|---|---|
| org.simplejavamail.mailer | |
| org.simplejavamail.mailer.config | |
| org.simplejavamail.mailer.internal.mailsender |
| 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,
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. |
Mailer(String host,
Integer port,
String username,
String password,
TransportStrategy transportStrategy)
Delegates to
Mailer.Mailer(ServerConfig, TransportStrategy, ProxyConfig) and tries to populates proxy details from config file and otherwise skips
proxy. |
| Modifier and Type | Method and Description |
|---|---|
static TransportStrategy |
TransportStrategy.findStrategyForSession(javax.mail.Session session) |
static TransportStrategy |
TransportStrategy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportStrategy[] |
TransportStrategy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
MailSender(javax.mail.Session session,
ProxyConfig proxyConfig,
TransportStrategy transportStrategy)
Configures proxy:
MailSender.configureSessionWithProxy(ProxyConfig, Session, TransportStrategy)(ProxyConfig, Session, TransportStrategy) |
Copyright © 2017. All rights reserved.