Email templates
Author, preview, publish, and send reusable templates from the dashboard, an MCP client, or the Unsendbox CLI.
Create a template
Dashboard route: /dashboard/templates.
- 01Open Templates and choose New template.
- 02Fill in Name, Subject, and an optional Template key, the stable identifier scripts reuse.
- 03Write the Email body (HTML) with Liquid placeholders such as {{ firstName }}.
- 04Save. The first save publishes revision 1.
Preview and publish a revision
Preview renders the stored body against sample variables before anything is sent.
- 01Select a template to open its detail panel and its current published revision.
- 02Render a preview to check the merged output for the template variables.
- 03Edit the source to start a draft, then save to publish the next revision.
- 04Historical revisions stay read-only in the panel.
Revisions are immutable
Saving a template writes a new numbered row in email_template_revision and repoints published_revision_id, instead of rewriting the old revision. A campaign run stores template_revision_id and a sequence stores template_revision_pins, so anything already launched keeps sending the exact body it started with.