> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Templates

> Design reusable emails from blocks or your own HTML, with variables for each contact.

## What is this?

A **template** is an email you design once and reuse in campaigns, recurring campaigns, automations, the Inbox and the API. You build it from **blocks** in a visual editor, or write it as **HTML**. The preview shows exactly what will be sent.

The Templates page also lists the platform's **system emails**: ready-made emails such as event registration, booking confirmations, payment requests and the double opt-in confirmation. You can edit their wording and design, and **Reset to default** brings back the original.

## What can I do here?

* Start from a ready-made design with **Predefined**, or from a blank editor with **Create template**
* Filter the list by **Type**: **All**, **Created by you** or **System emails**
* Search templates by name
* **Duplicate**, **Delete** or, for a system email, **Reset to default**
* Switch the editor between **Visual** and **HTML**
* Send yourself a test with **Send test to me**
* Insert contact variables, with a fallback for when a value is empty

## How to use it

### Create a template

**1. Pick a starting point**

Click **Predefined** to open the gallery. Designs are grouped under **Welcome**, **Newsletters**, **Sales**, **Engagement** and **Events**, and include a welcome, getting-started tips, newsletter, product announcement, promotion, limited-time sale, abandoned cart, order thank you, feedback request, "We miss you", birthday wishes, and event invitation and reminder. Click **Use template**, or choose **Create from scratch**. You can change every word and block afterwards.

**2. Fill in Details**

Set the **Name** (up to 120 characters), the **Subject** (up to 300 characters) and the **Preview text** shown next to the subject in the inbox (up to 300 characters).

**3. Build the Body**

Add blocks with **Add a block** and reorder them with **Move up** and **Move down**. A template can have up to **60 blocks**. Use **Colors** to set **Background color**, **Content background color**, **Text color** and **Button color**, and **Text sizes** to set the standard size for text, headings and headers.

**4. Set the Footer**

Add your postal address or any line for the bottom. The unsubscribe link is always added.

**5. Test and save**

Click **Send test to me** to receive it in your own inbox. Values with no data are listed as left empty. Save the template — saving marks it **Ready**. A template drafted by the AI assistant stays a **Draft** until you open it and save it, and only **Ready** templates are offered in the Inbox.

### Blocks

| Block | Use it for |
| - | - |
| **Header** | A top band with text, an optional picture, and its own colors |
| **Heading** | A title |
| **Text** | Paragraphs. Use the **Bold**, **Italic** and **Underline** buttons, or Ctrl/Cmd + B, I and U |
| **Image** | A picture by address or **Upload**, with a description and an optional link |
| **Button** | A call to action with **Button text** and **Button link** |
| **Divider**, **Space** | Separate sections. Space height is 4 to 120 pixels |
| **Social icons** | Instagram, Facebook, YouTube, Email, Telegram, X, LinkedIn, WhatsApp, TikTok or Website |
| **Highlight box** | A boxed note with an optional box color |
| **Tick badge** | A small check mark badge |
| **Tickets** | The registration's tickets (QR picture and details). Shown in event emails; nothing is drawn in other emails |

Links must start with `http://` or `https://`. Colors look like `#1a2b3c`. Uploaded images must be JPEG, PNG, GIF or WebP, up to 5 MB.

### Variables

Click **Add variable** beside any text that is filled per contact: **First name**, **Full name**, **Email address** and your **Custom fields**. Add a fallback in **If empty, use (optional)**, for example `there`, so `Hello {{contact.firstName|there}}` still reads well. You can type them yourself: `{{contact.firstName|there}}`, `{{contact.name}}`, `{{contact.email}}` and `{{custom.field_key}}`. For emails sent by API you can also use a variable of your own — see [Send an Email Template by API](https://docs.wappigate.com/workspace/email/send-by-api.md).

### Write your own HTML

Switch the editor to **HTML**. Switching back to **Visual** turns headings, text, buttons and images into blocks, and edits on either side show on the other. Layout only HTML can express (columns, custom styles) is not kept in Visual.

* Paste or write HTML, or click **Import HTML file** (up to 600 KB; most mail clients clip emails after about 100 KB).
* The HTML can be up to 100,000 characters. Scripts, forms and frames are removed when you save.
* Place the unsubscribe link yourself with `{{unsubscribe_url}}`. If your HTML has none, one is added.
* **Write with AI** drafts the HTML from a short brief: say what the email should say and who it is for, then click **Write the HTML**.
* **Improve with AI** rewrites the text of a block.

### System emails

Filter **Type → System emails** to see them. Open one to change its subject, wording or design. Click **Reset to default** and confirm to replace your changes with the original; emails already sent are not affected.

## Troubleshooting / Technical Notes

* **"A template can have at most 60 blocks."** Remove or combine blocks.
* **"A link in the template must start with http\:// or https\://."** Fix the link in the block named.
* **"This HTML cannot be shown as blocks."** No headings, text, buttons or images were found. Keep working in HTML.
* **"The file is larger than 600 KB."** Shrink the HTML or remove embedded images.
* **A campaign still sends the old version.** A campaign that already started keeps the copy it started with. Recurring campaigns read the template again at each run.
* **The Inbox says "No ready templates yet."** Open the template and save it so it becomes **Ready**.
* **A variable shows empty in the test.** The test contact had no value for it. Add a fallback.

## Related docs

* [Email Marketing](https://docs.wappigate.com/workspace/email/overview.md)
* [Email Campaigns](https://docs.wappigate.com/workspace/email/campaigns.md)
* [Send an Email Template by API](https://docs.wappigate.com/workspace/email/send-by-api.md)
* [Custom Fields](https://docs.wappigate.com/workspace/contacts/custom-fields.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.