Sending

Templates

Store versioned Handlebars templates and render them at send time.

Templates belong to a domain and have versions; one version is active. Create them in the dashboard (with live preview) or via the API, then send with template and t:variables:

Example
curl -s --user 'api:mz_your_api_key' https://mailzone-api.oritool.com/v3/mg.example.com/messages \
  -F from='Acme <[email protected]>' \
  -F to='[email protected]' \
  -F template='welcome-email' \
  -F t:variables='{"name":"Jane","confirm_url":"https://acme.com/confirm/abc"}'

Use t:version to send a specific version and t:text=yes to generate a plain-text part from the HTML. The template engine is Handlebars: {{name}}, {{#if vip}}…{{/if}}, {{#each items}}…{{/each}}.

Templates · Docs · MailZone