---
title: MailerSend
description: Configure MailerSend as an email provider in Notiflows
---

MailerSend is an intuitive email API with built-in templates and analytics.

## Prerequisites

Before configuring MailerSend in Notiflows, you need:

1. A [MailerSend account](https://www.mailersend.com)
2. A verified domain
3. An API token

## Configuration

| Field | Required | Description |
|-------|----------|-------------|
| API Key | Yes | MailerSend API token |
| From Email | Yes | An email address on your verified domain |
| From Name | No | Display name shown to recipients |

## Step 1: Add and verify a domain

1. Log in to the [MailerSend dashboard](https://app.mailersend.com)
2. Go to **Domains**
3. Click **Add domain**
4. Enter your domain name
5. Add the provided DNS records (SPF, DKIM, CNAME)
6. Click **Verify** once records are added

## Step 2: Create an API token

1. In the MailerSend dashboard, go to **API Tokens**
2. Click **Generate new token**
3. Enter a name (e.g., `Notiflows`)
4. Select **Full access** or **Custom** with email sending permissions
5. Click **Create**
6. Copy the token immediately

<Callout>
MailerSend only displays the API token once. Copy it and store it securely.
</Callout>

## Step 3: Set up in Notiflows

1. Navigate to **Channels** in your project
2. Click **Create Channel**
3. Select **Email** as the channel type
4. Select **MailerSend** as the provider
5. Paste your **API Key**
6. Enter your verified **From Email** and optionally a **From Name**
7. Save the channel

## Templates

Email templates support three content types:
- **Visual** - Drag-and-drop editor for rich HTML emails
- **HTML** - Raw HTML with full control
- **Plaintext** - Simple text emails

Use Liquid templating for dynamic content:

```liquid
Hi {{ recipient.first_name }},

{{ data.message }}
```

Available variable contexts:
- `recipient.*` - Recipient user data (first_name, last_name, email, etc.)
- `actor.*` - User who triggered the notification
- `data.*` - Custom payload passed when triggering the notiflow
