Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 5.0!

Merging e-mail content

E-mail templates can be edited in pure HTML allowing full customization options and freedom of design. Content elements are presented on the side of the e-mail template editor. These content elements are referred as tags.

Tags replace content from the various objects in the database and are formatted using handlebars {{somename}}.

<table width="100%" border="1" cellspacing="5" cellpadding="5">
      {{#if_eq PaymentTerm PaymentTerm}}
      <td>Checks:{{PaymentTerm}} == {{PaymentTerm}}</td>
      {{#if_eq PaymentTerm "7"}}
      <td>Checks:{{PaymentTerm}} == "7"</td>

      {{#switch PaymentTerm}}
              {{#case "8"}}
                             <td>{{PaymentTerm}} is "8"</td>
              {{#case "7"}}
                             <td>{{PaymentTerm}} is "7"</td>

An example on how to iterate through various invoice-lines is shown below.

{{#each InvoiceLines}}
  <div class="row">


We're always happy to help with code or other questions you might have! Search our documentation or contact helpdesk. You can also chat live with us using the Intercom icon.