Example: Configuring JavaMail provider and JavaMail session settings for application clients
The purpose of this article is to help you configure JavaMail provider and JavaMail session settings.
- Required fields:
- JavaMail Provider Properties page: name, and at least one protocol provider
- JavaMail Session Properties page: name, jndiName, mail transport protocol, mail store protocol
- Special cases:
- The password is encrypted when using the ACRCT tool. Without the tool, one cannot encrypt this field.
- Example:
<resources.mail:MailProvider xmi:id="MailProvider_1" name="Default Mail Provider" description="IBM JavaMail Implementation"> <classpath>mailProvider:classpath</classpath> <factories xmi:type="resources.mail:MailSession" xmi:id="MailSession_1" name="mailSession:name" jndiName="mailSession:jndiName" description="mailSession:description" mailTransportHost="mailSession:mailTransportHost" mailTransportUser="mailSession:mailTransportUser" mailTransportPassword="{xor}Mj42Mww6LCw2MDFlMT4yOg==" mailFrom="mailSession:mailFrom" mailStoreHost="mailSession:mailStoreHost" mailStoreUser="mailSession:mailStoreUser" mailStorePassword="{xor}Mj42Mww6LCw2MDFlMT4yOg==" debug="true" mailTransportProtocol="ProtocolProvider_1" mailStoreProvider="ProtocolProvider_1"> <propertySet xmi:id="J2EEResourcePropertySet_1"> <resourceProperties xmi:id="J2EEResourceProperty_1" name="mailSession:customName" value="mailSession:customValue"/> </propertySet> </factories> <propertySet xmi:id="J2EEResourcePropertySet_2"> <resourceProperties xmi:id="J2EEResourceProperty_2" name="mailProvider:customName" value="mailProvider:customValue"/> </propertySet> <protocolProviders xmi:id="ProtocolProvider_1" protocol="smtp" classname="smtp:className"/> <protocolProviders xmi:id="ProtocolProvider_2" protocol="pop3" classname="pop3:className"/> <protocolProviders xmi:id="ProtocolProvider_3" protocol="imap" classname="imap:className"/> </resources.mail:MailProvider>
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.