Template editor
Create and edit an email template.
Where: Email β Templates β New / Edit Β· /projects/<project>/emails/templates/new Β· β¦/<templateId>/edit
Add New Email Template / Edit Email Template builds multilingual email templates: one subject and one MJML/HTML body per language, plus the channel classification that controls unsubscribe preferences.
Screenshot TODO β capture comes from testing-plan area 13-emails.
Fields
Template name (required) and Description (up to 500 characters).
Translations β pick languages as tags; each selected language gets its own block with:
Subject (required) β plain text with tokens, e.g.
Welcome @Model.FirstName to our app!.Template (required) β the MJML/HTML body in a code editor, or visually in the full-screen Template Visual Builder. A live preview renders next to the code.
When a recipient's preferred language matches a translation, that translation is sent automatically.
Marketing Email / Transactional Email β a radio choice with matching Marketing Tags / Transactional Tags. Tags connect the template to the notification preference groups users can unsubscribe from.
Tokens use Razor syntax: @Model.X for custom tokens bound at send time, and reserved tokens such as Project.Name, Initiator.User.Email, or Recipient.User.FirstName that resolve automatically. Helper functions are also available β for example @Model.Cmf.RenderSignature(Model.Email.SignatureId) and @Model.Cmf.RenderFooter(Model.Email.FooterId) insert a shared signature or footer, and @Model.Cmf.RenderUnsubscribeLink(...) adds the unsubscribe link. Only allow-listed Cmf functions compile β the editor flags any other. See Tokens binding.
Create / Update saves the template (tmpl_β¦); its id then appears as a copyable button and every send that points at this id picks up the new content. On a saved template you also get Test (send a real test email through a chosen provider) and an actions menu with Create Campaign (opens Create a Campaign with this template preselected), Archive / Unarchive, Clone, and Delete.
Use it from code
Create Email Template Β· Update Email Template
API reference
Endpoints: Create Email Template, Update Email Template, Clone Email Template, Archive Email Template.
Last updated