> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send program emails with MailerSend

> Use your own MailerSend account and domain to send your program's emails

MailerSend is one of the email gateways Partnero can send your program's emails through, alongside [SMTP](https://docs.partnero.com/knowledge-base/program-emails/send-program-emails-with-smtp.md),
[Gmail](https://docs.partnero.com/knowledge-base/program-emails/send-program-emails-with-gmail.md),
[Brevo](https://docs.partnero.com/integrations/send-program-emails-with-brevo.md), [Mailgun](https://docs.partnero.com/integrations/mailgun.md),
[Postmark](https://docs.partnero.com/integrations/postmark.md), [SendGrid](https://docs.partnero.com/integrations/sendgrid.md), and Partnero's own built-in sending.
Connecting your MailerSend account lets those emails go out from any verified domain in that account, such as
*[partners@yourdomain.com](mailto:partners@yourdomain.com)*, instead of the default *@partnero.email* address.

> [!NOTE]
>
> This is about **sending email**, not syncing data. MailerSend does not receive your partners or customers. For
> that, see [Mailchimp](https://docs.partnero.com/integrations/mailchimp.md) or [MailerLite](https://docs.partnero.com/integrations/mailerlite.md).

## Before you start

You need:

* A MailerSend **API token** that can read domains and send email, for example a token with **Full access**. See
  [MailerSend's guide to API tokens](https://www.mailersend.com/help/managing-api-tokens).
* At least one **verified domain** in MailerSend.

## Connect MailerSend

1. In your program, go to **Emails** under Affiliate.
2. On the **Settings** tab, click **Setup** next to **Use MailerSend**:

   ![Email settings with the Setup button next to Use MailerSend](https://mintcdn.com/partnero/bKRQc1avHhyQ2pI4/images/image-160.png?fit=max\&auto=format\&n=bKRQc1avHhyQ2pI4\&q=85\&s=0bc96ac0098236c9233766aa2445e389)
3. Paste your **MailerSend API token** and click **Connect**:

   ![Connect to MailerSend window with the API token field](https://mintcdn.com/partnero/bKRQc1avHhyQ2pI4/images/image-161.png?fit=max\&auto=format\&n=bKRQc1avHhyQ2pI4\&q=85\&s=b8dc84377a1b1fb64523ebac796fa310)

Partnero checks that the token can read your domains and send email. Once connected, MailerSend shows a green
checkmark.

## Choose your sender

Connecting the gateway does not change which address your emails come from.

1. Under **Sender email**, open the domain list and pick a domain from the **MailerSend domains** group. Every
   verified domain in your MailerSend account is listed:

   ![Sender email domain list showing the MailerSend domains group](https://mintcdn.com/partnero/bKRQc1avHhyQ2pI4/images/image-162.png?fit=max\&auto=format\&n=bKRQc1avHhyQ2pI4\&q=85\&s=2813d228f11b60567a5f3e65ec6286a0)
2. In the field before the **@**, type the part of the address you want to send from, for example `partners`.
3. Click **Update** to save:

   ![Email settings with a MailerSend domain selected and the Update button](https://mintcdn.com/partnero/bKRQc1avHhyQ2pI4/images/image-163.png?fit=max\&auto=format\&n=bKRQc1avHhyQ2pI4\&q=85\&s=f24e402cd437412c6933cc41c5b2a988)

> [!TIP]
>
> Click **Send test email** below the email gateways to confirm everything works before your partners start
> receiving emails.

## Disconnecting

Click **Disconnect** next to **Use MailerSend** and confirm. Your API token is removed from Partnero.

If MailerSend was sending your program's emails, your sender email switches back to Partnero's default
*@partnero.email* address, so your emails keep going out. Your MailerSend domains are no longer selectable until
you connect again.

## Troubleshooting

> [accordion] Your API token is not valid
>
> MailerSend tokens are scoped. The token needs access to domains and to sending email, so a token with only
> read-only domain access is rejected. Also make sure you copied it in full, because MailerSend only shows it
> once.

> [accordion] Emails still come from the old address
>
> Connecting the gateway and choosing the sender are two separate steps. Go back to **Sender email**, pick a
> domain from the **MailerSend domains** group, and click **Update**.

> [accordion] My domain is missing from the list
>
> Only verified domains are listed. Finish verifying the domain's DNS records in MailerSend, then reload the
> **Emails** settings page.

## Next steps

> [card] [Email settings](https://docs.partnero.com/knowledge-base/program-emails/email-settings.md)
>
> Compare every email gateway you can connect

> [card] [Program emails](https://docs.partnero.com/knowledge-base/getting-started/program-email-notifications.md)
>
> Which emails Partnero sends


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.