Email Templates#
The E-Mail Templates used for alerts, trend notification and password rest are now configurable per tenant.
You can add custom designs to your emails and send tests from the Server Space admin area. You can also “Reset” your templates to the default Squirro ones.
Go to: “Server > Emails”
Variables in the Template#
You can refer to various variables in the email templates which are written in the language Jinja2.
Variable |
Contents |
Valid in |
reset_link |
Contains a link to reset the password. |
Password reset ok |
data[‘digest’][‘count’] |
The number of matches. |
Favorite Filters Alert, Trend Alert |
data[‘filter_name’] |
The name of the trend alert or search alert. |
Favorite Filters Alert, Trend Alert |
data[‘filter_link’] |
The link to the trend alert or search alert. |
Favorite Filters Alert, Trend Alert |
data[‘digest’][‘items’] |
The matching items, see the item rows below: |
Favorite Filters Alert, Trend Alert |
item[‘link’] |
The link of the item. |
data[‘digest’][‘items’] |
item[‘title’] |
The title of the item. |
data[‘digest’][‘items’] |
h.format_date(item[‘created_at’]) |
A formatted representation of the creation date of the item. |
data[‘digest’][‘items’] |
item[‘summary’] |
The summary of the item. |
data[‘digest’][‘items’] |
You can refer to images in <img> tags. They will be always inlined into the email. Make sure that the HTTP(S) target specified is reachable by the cluster node(s).
Note that the password emails are always chosen from the emailsender default tenant. You can configure it by setting:
[emailsender]
default_tenant = tenant_id
in your /etc/squirro/emailsender.ini
.
Default Emails#
Password Reset Ok |
Password Reset Fail |
Trend Alert |
Favorite Filters Alert |