Send an email from template

To send an email from a prepared template, set the template parameter to the template name.

To create a new email template, open the Emails section in Encharge and click the + icon in the lower-left. You can skip this step if you've already created your email template.

If you have previously created the recipient in Encharge, you can use personalization tags, for example {{ person.firstName }} in your email's text. See what fields you can use in Person Fields.

const axios = require('axios');

// Send a POST request
  method: 'post',
  url: '',
  data: {
    "to": "",
    "template": "Welcome Email",
   * Optionally, you can include a dictionary of fields to be replaced.
   * For example, passing
   * `{ "loginURL": ""}`
   * will replace
   * `{{ loginURL }}` in the email template.
    "templateProperties": {
      "loginURL": ""

If you provide the from parameter, it will overwrite the sender address specified in the template.

To use the template ID instead of the template name, pass a number to the template parameter above. Finding the template ID is easy - open the template in the Encharge app. Look at the URL to find the email ID. In the following URL, the template ID is 123.

Last updated