9.5. Setting up Email Notifications

Opal provides an ability to optionally notify a user of the status of a job after its complication by email. Users can set appropriate properties in the etc/opal.properties to configure this features. For instance, the specific lines for configuring this feature are as follows:

## BEGIN: email configuration for server
##        To be used for notifying users
## -------------------------------------------
# set to true if email notification is to be turned ON
mail.enable=false
# url for smtp server
mail.smtp.host=smtp.gmail.com
# whether the server needs authentication
mail.smtp.auth=true
# turn debugging on or off
mail.smtp.debug=false
# from address in notification email - could be a "no-reply" address
mail.smtp.from=foo@bar.com
# credentials for logging into smtp server
mail.smtp.user=foo@bar.com
mail.smtp.password=foobar
## -------------------------------------------
## END: email configuration for server

By default, the email notifications are turned off. To turn it on, please set the mail.enable to true. Update the rest of the properties above appropriately.

As usual, after all changes to the etc/opal.properties, reinstall Opal using the ant install command, and restart Tomcat for the changes to take effect.

For a user to receive email notifications, they will have to specify their email address via the Dashboard, or via the command-line client.