Skip to content

Conversation

ikreymer
Copy link
Member

Emails are now processed from Jinja2 templates found in charts/email-templates, to support easier updates via helm chart in the future.
The available templates are: invite, password_reset, validate and failed_bg_job.
Each template can be text only or also include HTML. The format of the template is:

subject
~~~
<html content>
~~~
text

Currently, only the invite template includes an HTML version, other templates are text only.
A new support_email field is also added to the email block in values.yaml

Invite Template

Current invite template, configured in charts/email-templates/invite is as follows:
Screenshot 2023-11-14 at 10 37 56 AM

The same template is used for new and existing users, with slightly different text if adding user to an existing org.

If user is invited by the superadmin, the invited by field is not included, otherwise it also includes 'You have been invited by X to join Y'

Password Reset Template

The password reset template has also been updated (just text so far):

Screenshot 2023-11-14 at 10 39 12 AM

@ikreymer ikreymer requested review from tw4l and Shrinks99 November 14, 2023 18:41
…user

tewak text on invite and password reset, fix text-only emails
move support email to secrets
Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Tested on dev and locally (from logs, without SMTP server)

@ikreymer ikreymer merged commit b23eed5 into main Nov 15, 2023
@ikreymer ikreymer deleted the email-templates branch November 15, 2023 23:22
ikreymer added a commit that referenced this pull request Aug 8, 2025
Quick follow-up to #1375. Makes email dev docs visible.

---------

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants