# Add an email to an automation

> Set up a SEND EMAIL step in an automation, fill in the subject and the sender, choose a template, and check the email before activation.
>
> Source: https://docs.mailniaga.com/automation-send-email/

The **SEND EMAIL** step sends one email to each subscriber who gets to that step in the automation flow. You set up the email in three stages: **Setup**, **Template** and **Overview**.

## Open the SEND EMAIL step

The step must be in the flow first. Add the step with **+** below another card, then choose **SEND EMAIL** in **Add node**.

1. Click **Campaigns** → **Automation**.
2. Click **Edit workflow** on your automation.
3. Click the **SEND EMAIL** card in the flow. The **SEND EMAIL** panel opens on the right side.

*(Screenshot: The SEND EMAIL card in the automation flow and the Setup panel on the right side)*

A card that is not complete is yellow and shows the message **No email bound**. The bar above the panel shows the current stage. The **Template** and **Overview** stages open only after the stage before them is complete.

## Stage 1: Setup

This stage sets the subject, the sender and the tracking settings.

1. Fill in **SUBJECT**. You can use [personalisation tags](https://docs.mailniaga.com/personalisation-tags/), for example the subscriber name.
2. Fill in **FROM NAME**: the name that the subscriber sees in the inbox.
3. Fill in **FROM EMAIL**. This field suggests addresses on the sending domain of your account. Choose an address on a verified domain.
4. Fill in **REPLY-TO (OPTIONAL)** if replies must go to a different address. This address must also be on a verified domain.
5. Set the switches below **TRACKING & DELIVERY**.
6. Click **Save & Continue**.

The switches below **TRACKING & DELIVERY** control these items:

| Switch | What it does | When you need it |
|---|---|---|
| **Track opens** | Counts the subscribers who open the email. | Necessary if a **CONDITION** step after this checks if the email was opened. |
| **Track clicks** | Records the clicks on the links in the email. | Necessary for click conditions and link reports. |
| **Sign with DKIM** | Signs the email with the DKIM key of the sending domain. | Keep it on. DKIM helps the email get to the inbox. |
| **Skip failed messages** | The flow continues when the email does not get to a subscriber. | Turn it on if the next steps must still run for that subscriber. |

## Stage 2: Template

After you save **Setup**, you choose the email design. If the step already has a design, this stage shows **Design your email**, with the **Edit content** and **Change template** buttons.

*(Screenshot: The Template stage with the Edit content and Change template buttons)*

The **Pick template** popup has two tabs:

- **Templates**: choose a ready template in **System**, or a template that you saved yourself in **My templates**.
- **Custom HTML**: use your own HTML.

*(Screenshot: The Pick template popup with the System and My templates options)*

The **Custom HTML** tab gives three ways to supply your own HTML:

| Option | What it does |
|---|---|
| **Upload a ZIP file** | Uploads an HTML template in a ZIP file, with `index.html` and the images and CSS. |
| **Edit with code editor** | Write or paste HTML code, with a live preview. |
| **Edit with visual editor** | Make the email with a visual text editor. |

*(Screenshot: The Custom HTML tab with three options)*

**Edit with code editor** and **Edit with visual editor** open the **Custom HTML** page. Paste or write HTML in **HTML content**, or click **Upload ZIP**, then click **Save HTML**. Click **Back to automation** to go back to the editor.

Personalisation tags such as `{{SUBSCRIBER_FIRST_NAME}}` also work in your own HTML. Make sure that the email has an unsubscribe link.

## Stage 3: Overview

This stage gives a summary of the email: **SUBJECT**, **FROM NAME**, **FROM EMAIL**, **REPLY TO** and the settings below **TRACKING & DELIVERY** that are on. Check the email here before you activate the automation.

*(Screenshot: The Overview stage with the Preview email button)*

Three buttons below the summary help you check the email:

- **Preview email**: open the email as it will be sent.
- **Preview email as…**: choose a subscriber in the list, then see the email with the data of that subscriber. Use this to check the personalisation tags.
- **Send a test email**: open the **Send test email** popup. Fill in an address in **RECIPIENT**, then click **Send test**.

*(Screenshot: The Send test email popup with the RECIPIENT field)*

> **Caution**
> **Send test** sends a real email and uses the credits of your account. A campaign test email does the same. Send it only to your own address or to the address of a member of your team.

## Tips

This advice helps you set up automation emails correctly:

- **Turn on Track opens when the flow checks opens.** With no tracking, the condition step cannot know if a subscriber opened the email.
- **Use Preview email as before you activate.** Then you can check the name and other fields for a real subscriber.
- **Give each email in a series a clear subject.** The cards in the flow and the reports show the subject. A clear subject helps you tell the emails apart.

## Common issues

### What does the No email bound message on my yellow SEND EMAIL card mean?

The email for that step is not set up yet. Click the card, fill in the Setup stage, click Save & Continue, then choose a template. You cannot activate the automation while a step is not complete.

### Why can I not use my FROM EMAIL address?

The FROM EMAIL and REPLY-TO (OPTIONAL) addresses must be on a domain that is verified for your account. The FROM EMAIL field suggests addresses on the sending domain of your account. If your domain is not there yet, add and verify a sending domain first.

### Can I change the template after the email is complete?

Yes. Open the Template stage and click Change template. The template that you click in Pick template is applied immediately, with no confirmation question, and replaces the current email design. Keep a copy first if you want to use the old design.
