| Modifier and Type | Field and Description |
|---|---|
private TransportStrategy |
Mailer.transportStrategy
The transport protocol strategy enum that actually handles the session configuration.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
Mailer.logSession(javax.mail.Session session,
TransportStrategy transportStrategy)
Simply logs host details, credentials used and whether authentication will take place and finally the transport protocol used.
|
| Constructor and Description |
|---|
Mailer(String host,
Integer port,
String username,
String password,
TransportStrategy transportStrategy)
Overloaded constructor which produces a new
Session on the fly. |
Copyright © 2009 under Apache v2 license.