Creating an email template

Email notifications are sent to customers and managers via the email service. A created notification template is automatically created for all downstream resellers (see Delegating UI templates, notification templates, event handlers, and notification categories). Before creating a notification template, create a notification category (see Managing notification categories).

To create an email notification template:

  1. Go to Notification Templates. The list of notification templates (see Viewing the list of notification templates).
  2. Click Create. The New Notification Template page is displayed.
  3. Enter information in the following groups:
  4. Click Create. The email notification template will be created for the current reseller and all its downstream resellers.

Template information

In the Template information group:

  1. In the Type list, select Email.
  2. In the Name field, enter the name of the template.
  3. In the Category list, select a notification category for notifications based on this template.
  4. If it is necessary to create an email notification template based on an existing one, in the Copy template from list, select the required email notification template. You can search a notification template in the list by part of its ID or name. As a result, the template body (see below) is prefilled from the selected template.

    When editing an email notification template, the copying option is not available, but you can use the preview mode of an HTML-formatted template (see Viewing and updating notification template's details).

Additional settings

In the Additional settings group:

  1. In the Form Name field, enter the sender's name displayed to recipients. You can use placeholders for the Reseller entity (see Placeholders for the Reseller entity). Example: {{reseller.name}}.

    Special characters in the sender's name may cause a notification sending error due to restrictions on the SMTP server side.

  2. In the From Email field, enter the email address from which the notifications will be sent to customers.
  3. In the To field, enter a placeholder (see below) or the recipient email address.
  4. Optionally, in the Cc and Bcc fields, enter a placeholder (see below) or the recipient email address of the notification email copy and hidden copy (optional).

    In the From Email, To, Cc, and Bcc fields, you can use various placeholders for email addresses (see Placeholders used in notification templates for specific event handlers). User emails are identified from the placeholders, and a notification will only be sent to those who had the appropriate status at the time the notification was generated (see Managing account's users and Viewing the list of managers). For example:

    • {{owner.email}} — the email of the account Owner, and the global status of the user is Active.
    • {{user.email}} — the email of an account user, and the global status of the user is Active.

      The {{user.email}} placeholder can be used as the email notification recipient for the following events only:

      • Unexpected consumption increase detection
      • The report with daily consumptions of pay-as-you-go subscriptions is ready
      • Spending budget for a period is approaching
      • Password reset request
      • Verify email
    • {{account.bill_user_email}} — the email of an account user responsible for financial issues, and the user status within the account is Active.
    • {{account.tech_user_email}} — the email of an account user responsible for technical issues, and the user status within the account is Active.
    • {{user_invite.email}} — the email of a user invited to join an account. The user status is not checked before sending.
    • {{account.manager.email}} — the email of the manager of an account (see Creating an account), and the manager status is Active.

    Status check is not performed before sending if a specific email is provided instead of a placeholder.

  5. In the Subject field, enter the message subject. You can use placeholders (see Placeholders used in notification templates for specific event handlers).

Template body

In the Template body group, enter the text of a notification using HTML and placeholders (see Placeholders used in notification templates for specific event handlers).

<html>
  <head>
    <title>Subscription stopped</title>
  </head>
  <body> This notification is being sent to notify you that your subscription "{{subscription.id}} — {{subscription.name}}" has been stopped. </body>
</html>