Creating Custom Email Templates for SMTP Services

You can create a custom email template to be sent when, for example, certain events occur in your system, like alarm alerts and alarm escalations.

  1. Add a new SMTP Gateway Service.

    or

    Click Edit on an existing SMTP Gateway Service.

  2. Click Custom Template.
  3. Complete the details.

    Field

    Description

    Title

    Enter a descriptive, unique, concise name for the custom template.

    The title is displayed when selecting a template for a rule.

    Description

    Enter more description about the custom template.

    For example, when it should be used.

    From

    Enter who will send the email.

    Subject

    Enter a subject line for the email.

    Template Editor

    Templates include automatically generated fields which can be used to send to recipients.

  4. Enter content for the body of the email.

    Supported template variables:

    Variable

    Description

    {{first_name}}

    The first name of the email recipient.

    {{last_name}}

    The last name of the email recipient.

    {{[custom]}}

    A custom variable defined when a rule is made.

    Any unused variable name can be used.

    {{date}}

    The date of the event.

    {{device}}

    The name of the device that triggered the event.

    {{event}}

    Name of the event that triggered the rule.

    {{site}}

    The name of the site.

    {{time}}

    The time of the event.

    Example:

    The Subject line for an alarm alert template may be:
    [ALARM] {{ site }} - {{ device }} - {{ event }}

    The body of alarm template may be:

    Copy
    Hello {{ first_name }} {{ last_name }},


    There is an Alarm on site {{ site }}, check device {{ device }}

    {{ site }}
    {{ event }}
    {{ device }}
    {{ date }}
    {{ time }}


    Sent by 
  5. Click Add.
  6. Continue to add custom templates as needed.