The Send Email authentication action allows sending an email to a recipient taken from the current attributes. It supports defining the email content in two ways: directly in the configuration or via a Velocity template. The former is suitable for scenarios where the content is simple and doesn’t require access to contextual data. The latter allows total flexibility, providing access to contextual attributes.
The following configuration options are available:
recipient-attribute-name
recipient-attribute-source
subject-attributes
email-provider/id
template
content
content/subject
content/title
content/body
Note that either template or content must be specified.
When content is configured, the email is rendered using a built-in template (authentication-action/send-email/default.vm) which uses an heading and a single paragraph for title and body, respectively.
authentication-action/send-email/default.vm
title
body
When template is configured, the template location is resolved relative to the action’s template directory (i.e. authentication-action/send-email). The Curity Identity Server includes template layouts and conventions for messages keys, which help defining email templates. For more details refer to Email Provider Plugin.
authentication-action/send-email
The context for the email templates includes the following properties:
subjectAttributes
contextAttributes
actionAttributes