# Personalize an email

Add first names, custom fields, fallbacks and blocks only some people see to a Mimeo email, using tags you type in the editor.

You personalize an email by typing short tags in the editor, such as `{{ person.first_name }}`, and Mimeo fills them in for each person when it sends. They work in the subject, the pre-header and the body. The **Personalize** items in the editor's **Insert** menu write them for you.

## Add a name or field

Type a variable where the value should go:

```
Hi {{ person.first_name }},
```

| Variable | What it shows |
| --- | --- |
| `{{ person.first_name }}` | First name |
| `{{ person.last_name }}` | Last name |
| `{{ person.name }}` | Full name |
| `{{ person.email }}` | Email address |
| `{{ person.fields.plan }}` | A custom field, by its key (here `plan`) |

Custom fields and their keys are listed under **People → Fields**. **Insert → Person field…** picks one for you.

## Always give a fallback

Some people have no first name on file. Add `default` so they get a word instead of a gap:

```
Hi {{ person.first_name | default: "there" }},
```

Without it, those people get "Hi ,". **Insert → Greeting with fallback…** writes this line.

## Show a block to some people

Wrap text in `if` to show it only when something is true, with an optional `else`:

```
{% if person.fields.plan == "pro" %}
This is already included in your plan.
{% else %}
Upgrade to Pro to get this.
{% endif %}
```

**Insert → If / then block…** builds one from a custom field.

## Show a block by tag

`person.tags contains` checks whether someone has a tag. Use `unless` to show a block to everyone without it:

```
{% unless person.tags contains "Customer" %}
**P.S.** Ready to buy? Here's the link.
{% endunless %}
```

Tag names match regardless of capitals. Renaming a tag under **People → Tags** updates these checks for you.

## Add renewal details

In a flow that starts on **Subscription renewal approaching** or **Subscription ending approaching**, the email can show the subscription that started it:

```
Your plan renews for {{ automation.subscription.renewal_amount }}
on {{ automation.subscription.next_renewal_date | date: "%B %-d, %Y" }}.
```

| Variable | What it shows |
| --- | --- |
| `{{ automation.subscription.renewal_amount }}` | The renewal price, such as $120.00 |
| `{{ automation.subscription.next_renewal_date }}` | The renewal date |
| `{{ automation.subscription.cancels_on }}` | The date an ending subscription stops |
| `{{ automation.subscription.plan }}` | The plan name |

Add `| date: "%B %-d, %Y"` to a date to show it as "March 4, 2027". These variables are blank in other emails. See [Choose what starts a flow](https://mimeohq.com/docs/usage/flows/triggers).

## Reuse a block with a snippet

A snippet pulls in a component you saved once, such as your signature:

```
{% component "signature" %}
```

Edit the component and every email that uses it changes. **Insert → Snippet…** lists yours. Components are covered in [Change how your emails look](https://mimeohq.com/docs/usage/emails/templates).

## Check it in the preview

Switch to **Preview** and render the email for a few different people, including someone with blank fields. That's where a missing fallback shows up.

<!-- cards -->

- [Change how your emails look](https://mimeohq.com/docs/usage/emails/templates): Edit the layout, footer, colors and fonts.
- [Write an email](https://mimeohq.com/docs/usage/emails): Create, preview and test an email.
- [Manage people](https://mimeohq.com/docs/usage/people): Add the tags and custom fields these tags read.

---

This is the Markdown copy of https://mimeohq.com/docs/usage/emails/personalize.
