Templates (Conf)¶
This module offers different email templates, which are editable. Since it is the same for advanced and basic settings it will not be described again in the advanced section.
Templates are editable. To edit a template, press the Edit button.
To save changes, press the Save button and then Back.
Using Variables in Templates¶
It is also possible to use variables in templates. For example a PIN generation template could look like this:
{{ user.username }}
{{ user.email}}
{{ user.displayName}}
your authentication ID is {{ token }}.
{% if expire_date %}
The authentication ID expires on {{ expire_date|date("yyyy/MM/dd") }} at {{ expire_date|date("h:mm a") }}.
{% endif %}
Note
Note that the variables that work in those templates are dependant on where the mail is generated. If it is generated from a monitoring system, the user variables will not work in this way. Also, variables like {{ token }} are only working in a correct context, i.e. when the context is PIN generation.