Workflow notification email content doesn’t update in AEM 6.5
In AEM 6.5, customizing workflow notification email content requires updating the correct email template based on the workflow step type. Project Task and Assign Task steps use different templates, and changes don’t reflect if the incorrect template is edited or related services are not refreshed. To fix this, update the appropriate workflow email template, configure the externalizer correctly, and restart the required workflow email services.
Description description
Environment
- Product: Adobe Experience Manager (AEM) On-Premise
- Version: 6.5
- Offering: Forms
Issue/Symptoms
-
Workflow notification email content doesn’t reflect custom changes.
-
The email content differs depending on whether the workflow step is a
Project Taskor anAssign Taskstep. -
Templates are stored in different locations:
Project Taskemail template:/libs/settings/workflow/notification/email/default/en.txtAssign Taskemail template:/libs/fd/dashboard/templates/email/htmlEmailTemplate.txt
-
Changes to email templates don’t appear until the email services are restarted.
Resolution resolution
To fix this issue, follow these steps:
- Identify the workflow email typeyou’re customizing and overlay the correct template. The Project Task workflow email template is located at
/libs/settings/workflow/notification/email/default/en.txt, while the Assign Task workflow email template is located at/libs/fd/dashboard/templates/email/htmlEmailTemplate.txt. - Navigate to
/system/console/configMgrand openDay CQ Link Externalizer. - Add or update the host configuration based on your environment to change
host.prefix. For HTTP, configure the FQDN or IP address with the port. For HTTPS, configure the value ashttps://FQDN/IP:portfor local, author, and publish schemes, and save the changes. Leave the Host name field empty. - Go to
/system/console/componentsand restart bothcom.day.cq.workflow.impl.email.EMailNotificationServiceandcom.day.cq.workflow.impl.email.TaskEMailNotificationServiceby disabling and enabling them to apply the template changes. - Verify that the workflow notification emails now reflect the customized content.
Notes:
- The notify checkbox triggers an uneditable template fetched from metadata. Customization is only possible using the specified template files.
- Always test all changes in a lower environment before applying them in production.
- To change URLs from HTTP to HTTPS, remove the host name from the externalizer settings to ensure correct URL rendering in workflow emails.