Templates
Every email and document is sent from a published template version. You edit a draft, publish it as a new version, and decide when each email moves to it.
Email and document templates
Open Templates and choose New template, then Email or Document and Create draft. The kind cannot change later. A document template also has its CSS, a PDF title and a page format (A3, A4, A5, Letter or Legal, portrait or landscape).
A template is a draft until its first publication, then active. In a project connected to Pulse, templates are written in Pulse.
Editing a draft
An email template has a subject, a preheader (the preview text inboxes show, up to 2,000 characters) and a body. Newsletters and triggered emails always use the subject and preheader of their template version.
The body is Markdown with a limited set of email tags. Insert image picks an image from your Assets. Preview the draft with a Sample contact of the project to see the personalization filled in.
Personalization
{{ contact.firstName }},{{ contact.email }}and the other contact fields; any other key, such as{{ contact.plan }}, reads a custom field.{{ event.<key> }}: the data of the event that triggered an automation, in triggered emails.{{ document.<key>.url }}: the link of a document of the campaign.{{ unsubscribe_link }}and{{ view_in_browser }}.
# Hello {{ contact.firstName }}
Your **{{ contact.plan }}** plan renews next week.
[Read in your browser]({{ view_in_browser }}) · [Unsubscribe]({{ unsubscribe_link }})A field a contact does not have renders empty, and the newsletter's readiness warns about fields the project does not know.
Publishing versions
Choose Publish to turn the draft into the next version, with an optional note of what changed. A published version never changes. You can publish only, or publish and move the emails that use the template to the new version in the same step.
To go back, open an older version and copy it into the draft (Edit from here, or Restore… for documents), then publish it as a new version.
Versions in emails
Each newsletter, triggered email and document uses one version of its template, and never moves to another by itself. When a newer version exists, the email shows it as available: Compare them, then Update to it or change the template.
From the template, Update N emails… moves up to 100 emails to one version at once. Before you change the version of a newsletter, its impact lists the scheduled sends and active automations that would send it. Sends already prepared keep their version.
Archiving and deleting
Project admins can Archive a template, and unarchive it later. Emails that use an archived template keep sending their version, with a warning. A template can be deleted only if it was never published and nothing uses it.