17.2. Mail session
Mail session defines the mail server properties that are used for sending emails if required by the application, such as, escalation or notification mechanisms (refer to the Red Hat JBoss BPM Suite User Guide).
17.2.1. Setting up mail session
To set up the mail session for your execution engine, do the following:
- Open the respective profile configuration file (
standalone.xml
orhost.xml
) for editing. - Add the mail session to the
urn:jboss:domain:mail:1.1
subsystem.Example 17.3. New mail session on localhost
<subsystem xmlns="urn:jboss:domain:mail:1.1"> <!-- omitted code --> <mail-session jndi-name="java:/mail/bpmsMailSession" debug="true" from="bpms@company.com"> <smtp-server outbound-socket-binding-ref="bpmsMail"/> </mail-session> </subsystem>
- Define the session outbound socket in the profile configuration file.
Example 17.4. Outbound socket definition
<outbound-socket-binding name="bpmsMail"> <remote-destination host="localhost" port="12345"/> </outbound-socket-binding>