# Design the campaign email

> In the Template step, choose a template from the gallery, paste your own HTML or upload a ZIP file, and add attachments and a preheader.
>
> Source: https://docs.mailniaga.com/campaign-design/

**Template** is the third step of the campaign wizard. In this step, you choose the design of the email. You can choose a template from the gallery or use your own HTML. You can also add attachments and a preheader.

## Choose a template from the gallery

Use this method when you want a ready design that you can change.

1. In the **Template gallery** tab, filter the templates with **All**, **Base**, **Simple** or **Extended**. You can also use the search box.
2. Click **System templates** for the Mail Niaga templates, or **My templates** for the templates that you made.
3. Click **Choose** on the template that you want.

   *(Screenshot: The Template gallery and Your Custom HTML tabs, with the filters and the template cards)*

4. The page shows **Template assigned** and a preview of the email. Click **Open email builder** to change the text, the images and the layout. If the campaign uses your own HTML, the button is **Edit HTML**.
5. Click **Continue to Schedule**.

*(Screenshot: Template assigned with the Open email builder and Change template buttons)*

Click **Change template** to choose a different template. For your own templates, see [Email templates: overview](https://docs.mailniaga.com/templates/) and [Use the email builder (drag & drop)](https://docs.mailniaga.com/email-builder/).

## Use your own HTML

Use this method when you already have an HTML email, for example from your designer.

1. Click the **Your Custom HTML** tab.
2. Paste or write the content in the editor. Click **Edit Source** to paste the HTML code directly.
3. As an alternative, click **Upload ZIP** to upload the email design in one ZIP file. 
4. Click **Save HTML**.

*(Screenshot: The Your Custom HTML editor with the Upload ZIP, Edit Source and Save HTML buttons)*

You can use [personalisation tags](https://docs.mailniaga.com/personalisation-tags/) such as `{{ SUBSCRIBER_FIRST_NAME }}`, `{{ UNSUBSCRIBE_URL }}` and `{{ WEB_VIEW_URL }}` in your HTML.

> **Caution**
> If a campaign does not use your own HTML yet, the console asks **Switch to Custom HTML?** the first time that you click **Save HTML**. After you click **Switch to Custom HTML**, the campaign stays in HTML mode. You cannot go back to the email builder for that campaign. Click **Cancel** if you want to continue with the builder.

## Add attachments & a preheader

The two sections are below the template preview. Both sections are optional.

- **Attachments**: drag files to the box, or click the box to choose files. The maximum size of each file is 25MB.
- **Preheader text**: a short text that shows after the subject in the inbox. Write fewer than 100 characters, then click **Save**. The **Inbox preview** card shows how the subject and the preheader look in the inbox.

*(Screenshot: The Attachments and Preheader text sections with the Inbox preview)*

## Plain Text campaigns

A **Plain Text** campaign has no template gallery. In the **Template** step, write the email content in the **Email content** box, then click **Save & Continue**. The **Available tags** list below the box shows the tags that you can use, for example `{{ FIRST_NAME }}` and `{{ UNSUBSCRIBE_URL }}`.

*(Screenshot: The Email content box for a Plain Text campaign, with the Available tags list)*

## Tips

This advice helps you send a correct email:

- **Make sure that the email has an unsubscribe link.** Put `{{ UNSUBSCRIBE_URL }}` in your HTML. With this link, subscribers can stop their subscription.
- **Write a preheader that completes the subject.** The preheader is the second text that a subscriber reads in the inbox.

## Common issues

### Where is the Continue to Schedule button?

The Continue to Schedule button shows only after the campaign has a template. Choose a template from the Template gallery, or save your HTML first.

### Why does my own template not show in the gallery?

The gallery shows the System templates first. Click My templates to see the templates that you made in the Templates menu.

### What is the largest file that I can attach?

The maximum size of each attachment is 25MB.
