Create an email template
Out of the box, AEM Forms provides a template for email notifications. The template provides title description, due date, priority, workflow name, and link of the assigned task. You can also add a custom email template (your own template) for Assign task steps. Perform the following steps to add a custom email template:
-
Log in to CRXDE with administrator account.
-
Navigate to /libs/fd/dashboard/templates/email.
-
Create a .txt file. For example, EmailOnTaskAssign.txt.
-
Add custom HTML code to the file.
An email notification template is an HTML email. You can add custom HTML code to the file to create a template.
-
Save the file. The template is ready for use in Assign Task step.
Use an email template in an Assign Task step
Out of the box, Assign task step is configured to use the default template, htmlEmailTemplate.txt. You can choose to use a custom template. To change the template:
-
Open the Assign Task step.
-
Navigate to Assignee > HTML Email Template.
-
Select the newly created HTML Email Template.
-
Click OK. The template is changed.
An email notification also uses metadata. For example, due date, priority, workflow name, and more. You can also configure the template to use custom metadata.