The mail-resource element can contain the following subelements:
Table 3–34 List of mail-resource Subelements
Element |
Occurrences |
Description |
---|---|---|
enabled |
0 or 1 |
Determines whether the mail resource is enabled at runtime. The default value is true. |
jndi-name |
1 |
The JNDI name of the resource. |
description |
0 or 1 |
The description of the resource |
property |
0 or more |
Configures optional mail-resource-specific properties. The properties are the standard JavaMailTM properties For more details, see the JavaMail API Specification at http://java.sun.com/products/javamail/JavaMail-1.2.pdf, and property. |
store-protocol |
0 or 1 |
The protocol used to retrieve messages. |
store-protocol-class |
0 or 1 |
The storage service provider implementation for store-protocol. The value is a name of a class that implements store-protocol. The default value is com.sun.mail.imap.IMAPStore. |
transport-protocol |
0 or 1 |
The protocol used to send messages. |
transport-protocol-class |
0 or 1 |
The transport service provider implementation for transport-protocol. The value is a name of a class that implements transport-protocol. The default value is com.sun.mail.smtp.SMTPTransport. |
host |
1 |
The mail server host name. |
user |
1 |
The mail server username. |
from |
1 |
The email address from which the server sends email. |
description |
0 or 1 |
The description of the mail resource. |