Skip to main content
A template is the subject, preheader and HTML of one email. A journey’s Send email step sends it, and so does a transactional send through POST /v1/public/messages. You keep templates in the console under Content; any member can create, edit, preview, test and delete them.

Create a template

1

Open Content

Click Content, then Create template.
2

Fill in the fields

Give it a Name, a Subject, an optional Preheader and the HTML of the email. Maqetin makes the plain-text part from the HTML.
3

Save it

Click Save template. Maqetin renders it once with sample values; a template that cannot be rendered is not saved, and the console says why.
Every save makes a new version, shown with its save time on the template’s page. A send uses the version saved last when the email is made. Write a value’s name in double braces, in the subject, the preheader or the HTML.
A missing value prints nothing. {{name}} in the HTML is HTML-escaped, so a value adds no markup. Triple braces, {{{name}}}, print unescaped: use them only for HTML you wrote yourself, never for a value a person can set. Values in the subject print as text. Partials are refused. Maqetin adds a footer to every email; the template cannot remove or change it. Every email carries the postal address of its sending domain, and journey email also carries an Unsubscribe link. Email sent through the API carries the postal address only. See Email.

Preview and test

The template’s page shows a preview of your edits, before you save them. Pick a contact under Preview as to render it with that contact’s values, and switch between HTML and Plain text. The footer shows as “Your postal address appears here”; the real address and unsubscribe link are added when an email is made.
A preview has a contact and nothing else: data and event. values print empty. Use default for any value that may be missing.
1

Save the template

A test sends the saved version, without your unsaved edits.
2

Click Send test

Pick a verified domain under Send from. The test needs sending approval.
3

Check your inbox

One test goes to your own sign-in address, and to nobody else.

Use a template in a send

The template’s id is shown in the header of its page. A journey’s Send email step picks the template by name. A transactional send names it as templateId:
The example prints {{order.id}} and {{order.total}}.

Find and delete templates

Content lists your templates newest first. Find a template matches the start of a template name, in any case. Delete template removes a template and every version of its HTML for good. It is refused while a journey that is not archived, a paused one included, still uses it in its running version or in an older version that contacts are still in. Archive the journey, or publish a version without the template and wait until nobody is left on the older versions.

Limits

Good to know

  • When two values share a name, data wins over a trait, and a trait wins over the first_name and last_name aliases. Nothing overrides email or user_id.
  • A test has no contact behind it: only email and user_id hold values; traits, data and event. values print empty.