Example email templates for use with the "N8N_UM_EMAIL_TEMPLATES" variables

Describe the question

I can see there are five variables for swapping in my own email tempates

Variable Purpose
N8N_UM_EMAIL_TEMPLATES_CREDENTIALS_SHARED Overrides the default HTML template for notifying users that a credential was shared. Provide the full path to the template
N8N_UM_EMAIL_TEMPLATES_INVITE Full path to your HTML email template. This overrides the default template for invite emails
N8N_UM_EMAIL_TEMPLATES_PWRESET Full path to your HTML email template. This overrides the default template for password reset emails
N8N_UM_EMAIL_TEMPLATES_PROJECT_SHARED Overrides the default HTML template for notifying users that a project was shared. Provide the full path to the template
N8N_UM_EMAIL_TEMPLATES_WORKFLOW_SHARED Overrides the default HTML template for notifying users that a workflow was shared. Provide the full path to the template
N8N_EMAIL_SETTINGS__APPEND_N8N_ATTRIBUTION Overrides the default value of “True” that adds “This email was sent automatically with n8n” to the end of emails

Are there any example templates for these five? I can’t find anything online nor via ChatGPT.

That they have UM in the name the LLM suggests might be to do with an email template format called “Ultimate Member for WordPress”

Hey @Neil_Carmichael, hope all is well.

UM here stands for user management.

The way you’d use them is you’d mount the folder with HTML files that should be used for corresponding action (sharing creds, invites etc) and then you would set the env vars in the list with the path to the file for each action you would like to override.

Ah, makes sense, acromyms can be confusing like that :slight_smile:

Are there any examples people are aware of? I tried searching the file system for files with the default footer of “This email was sent automatically with n8n“ but nothing came up

See if anything useful can be found in
/usr/local/lib/node_modules/n8n/dist/user-management/email/templates/

Looks promising:

# ls -lah /usr/local/lib/node_modules/n8n/dist/user-management/email/templates/

total 76K
drwxr-xr-x    2 root     root        4.0K Sep  8 14:53 .
drwxr-xr-x    3 root     root        4.0K Sep  8 14:53 ..
-rw-r--r--    1 root     root        9.5K Sep  8 14:53 credentials-shared.handlebars
-rw-r--r--    1 root     root        4.4K Sep  8 14:53 n8n-logo.png
-rw-r--r--    1 root     root       11.9K Sep  8 14:53 password-reset-requested.handlebars
-rw-r--r--    1 root     root        9.1K Sep  8 14:53 project-shared.handlebars
-rw-r--r--    1 root     root        9.5K Sep  8 14:53 user-invited.handlebars
-rw-r--r--    1 root     root        9.5K Sep  8 14:53 workflow-shared.handlebars
1 Like

I have downloaded those files and the ones in node_modules/n8n/templates and will try them out.

For those not familiar “handlebars” is a HTML templating language name after the double-curly-brackets it uses for variables looking like a handlebar moustache

1 Like

Let us know how it goes.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.