MailSession
to be registered with JNDI. The MailSession may be configured
by setting the annotation elements for commonly used Session
properties. Additional standard and vendor-specific properties may be
specified using the properties element.
The session will be registered under the name specified in the
name element. It may be defined to be in any valid
Java EE namespace, and will determine the accessibility of
the session from other components.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String[] | |
| public String | |
| public String | |
| public String |
| description | back to summary |
|---|---|
| public String description() Description of this mail session.
| |
| from | back to summary |
|---|---|
| public String from() From address for the user.
| |
| host | back to summary |
|---|---|
| public String host() Host name for the mail server.
| |
| name | back to summary |
|---|---|
| public String name() JNDI name by which the mail session will be registered.
| |
| password | back to summary |
|---|---|
| public String password() Password to use for authentication.
| |
| properties | back to summary |
|---|---|
| public String[] properties() Properties to include in the Session. Properties are specified using the format: propertyName=propertyValue with one property per array element.
| |
| storeProtocol | back to summary |
|---|---|
| public String storeProtocol() Store protocol name.
| |
| transportProtocol | back to summary |
|---|---|
| public String transportProtocol() Transport protocol name.
| |
| user | back to summary |
|---|---|
| public String user() User name to use for authentication.
| |