Show Table of Contents
10.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 BRMS User Guide).
10.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.xmlorhost.xml) for editing. - Add the mail session to the
urn:jboss:domain:mail:1.1subsystem.Example 10.3. New mail session on localhost
<subsystem xmlns="urn:jboss:domain:mail:1.1"> <!-- omitted code --> <mail-session jndi-name="java:/mail/brmsMailSession" debug="true" from="brms@company.com"> <smtp-server outbound-socket-binding-ref="brmsMail"/> </mail-session> </subsystem> - Define the session outbound socket in the profile configuration file.
Example 10.4. Outbound socket definition
<outbound-socket-binding name="brmsMail"> <remote-destination host="localhost" port="12345"/> </outbound-socket-binding>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.