# Email notifications and templates

Choose recipients, set where replies go, edit customer and admin templates, and send test emails.

Use this when a form should send confirmation emails, admin alerts, or both.

### How form emails work

Each form has two email flows, each with its own card in the form editor:

- **Customer Confirmation Email**: sent to the person who submitted the form.
- **Admin Notification Email**: sent to your team when a submission comes in.

You manage recipients, reply-to, and template content separately for each.

### Choose who receives emails

#### Customer confirmation email

Use **Customer's Email Comes From** to choose the form field where the customer enters their email. The confirmation is sent to the address they submit there.

Only Email-type fields appear in the picker, so add an Email field to the form first. Until the form has one, the card shows _No email fields yet_.

![](https://cdn.sanity.io/images/qnhxgxnh/production/2b986d6e79d97b758f28878182ae64516585ec59-1462x716.png?w=1600&fit=max&auto=format)

#### Admin notification email

- **Send Notifications To**: your team's fixed addresses. Add an email and press Enter, as many as you like. These addresses receive every submission.
- **Also Send to Email Fields From This Form (Optional)**: sends a copy to whatever address is captured in the selected field(s).

> **Note:** If the form should send a customer email every time, make the email field required.

![](https://cdn.sanity.io/images/qnhxgxnh/production/c4bfe93717ac525ab302f970de22e7e9e5bd966c-1470x692.png?w=1600&fit=max&auto=format)

### Choose where replies go

Both email cards have a **Reply-To Address** setting: where replies land when someone hits Reply.

- **Default sender address**: replies go back to the address the email was sent from. This is the default.

![](https://cdn.sanity.io/images/qnhxgxnh/production/1512449e896223564d37ec41a0584dca49618549-1426x190.png?w=1600&fit=max&auto=format)

- **A specific email address**: replies go to a fixed address you type in **Reply-To Email**, for example the store's own inbox when emails are being sent for a specific store.

![](https://cdn.sanity.io/images/qnhxgxnh/production/af076fc277c2f446ad23ab62735448e617a7e0ef-1428x384.png?w=1600&fit=max&auto=format)

- **An email field from this form**: replies go to the address the customer submitted, using the Email-type field you pick in **Reply-To Field**. Set this on the admin notification and your team can hit Reply and write straight back to the customer.

![](https://cdn.sanity.io/images/qnhxgxnh/production/17b5ba260f7f5ebe92549103d64208352d615088-1428x388.png?w=1600&fit=max&auto=format)

> **Note:** Keep **Default sender address** for best deliverability. A custom reply-to address on another domain can land in spam.

### Edit the templates

1. **Open Mail Templates**
   From the main **Forms** list, open **Mail Templates** for the form.

2. **Choose the audience tab**
   Switch between **Customer** and **Admin**.

3. **Update the email subject**
   Write a subject line that makes the purpose clear.

4. **Edit the email body**
   Update the HTML template with the content and variables you need.

5. **Send a test**
   Use **Send test** before you publish changes.

![](https://cdn.sanity.io/images/qnhxgxnh/production/096ab825f64ec14945767b3d6e6b7ee724e13eb3-988x1228.png?w=1600&fit=max&auto=format)

### Common template data

The editor supports form and shop data.

Common values shown in the template editor include:

- form column headings
- submitted values from each field
- `shop.name`
- `shop.email`
- `shop.url`

Use consistent field names in the form builder so the template stays easy to maintain.

### Practical setup rules

- Keep the customer subject short and clear.
- Include the submitted values in admin emails.
- Test after renaming a field.
- Re-test after changing required fields.

### Troubleshooting

#### Customer emails are not sending

Check these first:

- the form includes an email field
- the correct field is selected under **Customer's Email Comes From**
- the submission included a valid address

#### Admin emails are not sending

Check these first:

- at least one fixed admin address is entered, or an email field is selected
- the form was submitted successfully
- the template changes were saved

#### A template shows blank values

Check whether the field name changed after the template was created.

### Important interaction with Klaviyo

If **Trigger Klaviyo event on form submission** is enabled, Roadmap's automatic customer confirmation email is disabled for that form.

Roadmap still sends the admin notification email.

Read next: [Trigger Klaviyo on submit](https://www.roadmap.so/docs/forms/trigger-klaviyo-on-submit)

### Related guides

- [Building with forms](https://www.roadmap.so/docs/forms/building-with-forms)
- [Trigger Klaviyo on submit](https://www.roadmap.so/docs/forms/trigger-klaviyo-on-submit)
