How to Configure the EmailerToAddr Notifier#
This topic provides step-by-step instructions for configuring the EmailerToAddr notifier in TheHive.
Notifier availability
The EmailerToAddr notifier is available only when you turn off the Send notification to every user in the organization toggle and use one of the following triggers:
- AnyEvent
- FilteredEvent
- CaseClosed
- CaseCreated
- CaseFlagged
- CaseShared
- AlertClosed
- AlertCreated
- AlertImported
- TaskClosed
- TaskMandatory
SMTP configuration required
Configuring EmailerToUsers and EmailertoAddr notifiers requires setting up SMTP beforehand.
Required permissions
Only users with the manageConfig
permission can manage notifications in TheHive.
Procedure
-
Go to the Organization view from the sidebar menu.
-
Select the Notifications tab.
-
Select and then Edit.
-
Select the EmailerToAddr notifier.
-
In the EmailerToAddr drawer, enter the following information:
- Subject
The email subject line.
- From
The sender's email address.
- Template
The email template used for the message. If you select the HTML format, you must write the full HTML syntax.
Available variables
You can use variables in certain fields by selecting Add variable. Refer to the Variable Usage Examples topic for detailed examples.
Conditional helpers using Mustache syntax
Example:
Find additional supported operators in the official Handlebars documentation.{{#if (eq object.severity 2) }}MEDIUM {{else}}Other {{/if}}
Data formatting helpers
The following helpers are available to format your data:
Helper Description Usage Output tlpLabel
Format the tlp
field of the object{{ tlpLabel object.tlp }}
Amber
papLabel
Format the pap
field of the object{{ papLabel object.pap }}
Amber
severityLabel
Format the severity
field of the object{{ severityLabel object.severity }}
Critical
dateFormat
Format a date field of the object using Java date time patterns {{dateFormat audit._createdAt "EEEEE dd MMMMM yyyy" "fr" }}
jeudi 01 septembre 2022
Standard string helpers can be found in the official Handlebars documentation.
-
Select Confirm.