Skip to main content
Some actions in aiGust send an email. You write the content of each email yourself, in each language. Only key users can change the templates. Click Settings in the main rail, and choose Mail content.
Mail templates page with the templates Password reset email, Verification email, Welcome email and Client welcome email. Password reset email is selected, with the languages NL, EN and FR, the Subject Reset your password, and the Template in HTML with a button macro. On the right, Available parameters (receiver, aigust_portal_url, link, link_expiration) and Referenced types (EmailUserParams with email, first_name and last_name). At the bottom, Send test email to yourself, Clear customizations and Save.

The template of the welcome email.

The emails aiGust sends

We may add more emails later. The header, footer and colours of the emails come from the mail layout. See Mail layout.

Edit a template

  1. Click the template at the top.
  2. Choose the language with nl, en or fr. Each language has its own template.
  3. Change the Subject and the Template.
  4. Click Save.
To check the result, click Send test email to yourself. aiGust sends you the saved template, in your own language. Save your changes first. To go back to aiGust’s template, click Clear customizations. It wipes your changes, and aiGust’s default template applies again. aiGust sends each email in the language of the recipient: the language chosen when the user was created. So when you change a template, change it in every language your users have.

Write a template

A template is HTML. You make it personal with the Jinja templating language.

Parameters

Write {{ parameters.<name> }} to fill in a value. Available parameters, to the right of the template, lists the parameters of the email, such as:
  • receiver: who receives the email, with their email, first_name and last_name, as listed under Referenced types.
  • aigust_portal_url: the web address of aiGust.
  • password_update_link: the link to set a password.
For example, {{ parameters.receiver.first_name }} fills in the first name of the recipient.

Conditions

With {% if %}, you only show something when a condition is true. The welcome email uses it to greet the recipient by their first name, if aiGust knows it:

Buttons

The button macro adds a button, with a label and a link. It uses the button colours of the mail settings.
Use the parameters for the links, such as parameters.password_update_link. A link you type yourself doesn’t work for every user.