Skip to main content

Email templates

Templates store reusable subject and HTML body content. Campaigns and Compose both reference templates so you design once and send many times. In the app: Templates

Visual builder

Mailofly includes a drag-and-drop email builder: The builder saves both rendered HTML (body) and the builder document (body_json) so you can re-open and edit visually.
Mailofly AI (Basic plan+) can draft template content from a prompt inside the builder.

Merge tags

Insert placeholders that resolve per recipient at send time:

Built-in contact fields

Date & time (computed at send)

Custom placeholders

Any tag not in the built-in list (e.g. {{ promo_code }}) is a custom variable. Provide values at send time:
  • Compose dialog — prompted before send
  • API — pass in the variables object

Template readiness

A template needs both subject and body before campaigns treat it as ready. Draft templates (missing subject) appear filtered separately in the gallery.

Use in campaigns vs compose


API

Full reference: API: Templates
  • Compose — one-off sends with a template
  • Campaigns — attach template to a blast
  • Contacts — fields that power merge tags