# Resend

Let Lyna AI send email from your Resend account and read your sent mail, domains, contacts and broadcasts from the chat.

Connect your Resend account so Lyna AI can send email for you, check what was delivered, and see whether your domain is ready to send from.

## What it lets you do

- Send email: one at a time, in a batch or scheduled, and update or cancel a scheduled one.
- Read the emails you sent and received, and whether each one was delivered.
- Manage templates, contacts, contact properties, segments and topics.
- Create and send broadcasts, and work with automations and events.
- Add domains and check that they are verified.
- Manage API keys and webhooks, and read your logs.

| Item                         | Detail                                                                                                                                              |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| What it asks for             | A sign-in on Resend's page.                                                                                                                         |
| Who pays the provider        | You. Every email counts on your own Resend plan.                                                                                                    |
| Do actions change real data? | Yes. An email that goes out reaches a real person, and changes to contacts, domains or keys apply to your Resend account.                           |
| Where it runs                | On Resend's servers.                                                                                                                                |
| Who uses it                  | Lyna AI while it builds, in Build mode. Your published app can use it too: [Use a connector in your app](/integrations/connectors/use-in-your-app). |

## What you need before you start

- A Resend account. A free one is enough to try it.
- A domain verified in Resend, to send to anyone other than yourself (see Limits).
- Edit access to your Lyna project.

### Permissions in Resend

Resend has two levels of access for a sign-in. Lyna asks for full access, because the connector reads as well as sends. Resend's page shows what you are granting.

| Task                                                      | What you need |
| --------------------------------------------------------- | ------------- |
| Send email                                                | Either level  |
| Read domains and email status                             | Full access   |
| Manage contacts, broadcasts, templates, keys and webhooks | Full access   |

A sign-in limited to sending can send, and it cannot read your domains or whether an email was delivered.

## Ways to connect

**On the connector's page.** A sign-in on Resend's own page. Lyna stores it encrypted. Only the owner can sign in again.

**Who owns the account?** The person who signed in. Every email and every call goes out as that person's Resend account, whoever typed the request.

**Who can use it?** Only you, in the projects you link it to, until you change it. On the connector's page, **Who can use it** also offers **Only this project** and **The whole workspace**. See [Who can use a connection](/integrations/connectors#who-can-use-a-connection).

**Can I connect more than one account?** Yes. Add one connection per Resend account and give each its own **Name**, so they read apart.

**An API key.** In **Connectors**, choose **Add custom**, then **Custom server**. Give it a name, paste `https://mcp.resend.com/mcp` in **Server address**, set **How it signs in** to **Key or token**, paste the value, and choose **Add and test**. Create the key in your [Resend API keys page](https://resend.com/api-keys). It starts with `re_`. A key limited to sending cannot read your account.

## Set it up

1. ### Open the connector

   Open the **+** menu of the chat and choose **Connectors**. Find **Resend** with the search field or under **Developer tools**, then open its page.
2. ### Connect

   Choose **Connect**. The **New connection** page opens and reads "Sign in with your Resend account to connect." Choose **Connect** at the bottom of the page. **Sharing**, just above, sets who can use it.
3. ### Sign in

   A new window opens on Resend's own page. If your browser blocks the window, the page goes to the sign-in in the same tab and brings you back after. Sign in and approve the access.
4. ### Read the result

   The page tests the connection and shows the result. **Connected** means Lyna can use it.

This connector shows no field to fill in: everything you give, you give on Resend's own page.

> [!WARNING]
>
> **What never to share**
>
> Lyna never asks for your Resend password. Type it only on Resend's own page, and never paste a password or an API key in the chat.

### Check it works

After you choose **Connect**, the page tests the connection and shows the result. Run it again at any time with **Test connection**. **Connected** proves that Resend's server answered, accepted your sign-in and listed its tools. A pass does not prove access to every piece of data, and it does not prove that an email can reach anyone.

To check for real, ask for something you know exists:

- "List my Resend domains and tell me which ones are verified."

If that works, the sign-in can read your account. Then send one test email to your own address.

## What to ask Lyna AI

Type these in the chat, in Build mode, and adjust the names to yours. Once it is connected, **Use Resend** on its page starts a message for you.

| What you build or do       | What to type                                                                            | What happens                                                                     |
| -------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| Check a domain             | "Is the domain I send from verified? If not, list the DNS records I still need to add." | Lyna AI reads your domains and lists what is missing.                            |
| Test a welcome email       | "Send a test of my welcome email to my own address, then tell me if it was delivered."  | After your approval, the email goes out. It then reads the status.               |
| Find bounces               | "Show the emails that bounced this week and who they were sent to."                     | It reads your sent mail and answers in the chat.                                 |
| Plan a send                | "Schedule this announcement for Monday at 9:00 to my Customers segment."                | After your approval, the send is scheduled. You can cancel it until it goes out. |
| Clean a list               | "Unsubscribe these three addresses from my newsletter topic."                           | After your approval, your contacts change in Resend.                             |
| Connect events to your app | "Create a webhook that calls my app when an email bounces."                             | After your approval, the webhook appears in your Resend account.                 |

### Approvals and tool switches

Before a call, Lyna AI shows the tool and what it asks. You choose **Deny**, **Allow once**, **Always allow this tool** or **Always allow this connector**. A tool its server marks as read-only does not ask. A changed or new tool asks again, and **Ask again** on the connector's page takes a choice back.

Under **What Lyna AI can use**, each tool has a switch. Lyna AI stops using a tool you turn off, in your chats in this project.

### Stay safe

What a connector answers reaches the AI as data, never as instructions. Read each approval before you accept it.

- Check the recipients of every send before you approve it. An email that has gone out cannot be taken back. Only a scheduled one can be cancelled, until it goes out.
- Do not choose **Always allow this tool** for a tool that sends email, unless you want every later send to go out with no question.
- Emails you receive can contain text anyone wrote. Lyna passes it to the AI as data, not as instructions.

## Limits

- A sender address must use a domain verified in Resend. You add the domain in Resend, then add the DNS records it shows at your domain's DNS provider. Verification can take a while after that.
- The test address `onboarding@resend.dev` only delivers to the email address of your own Resend account.
- Every email counts on your own Resend plan, with its limits.
- The connector helps Lyna AI build. To make your published app send email, ask for it in the chat, or see [Edge functions](/features/cloud/edge-functions).
- See [Resend's page about this server](https://resend.com/docs/mcp-server) and its [terms](https://resend.com/legal/terms-of-service).
- Connector tools run in Build mode. Plan and Ask do not run them.

## Troubleshooting

| What you see                                                           | What it means and what to do                                                                                                                                                         |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Needs sign-in**                                                      | Your sign-in ended, or you revoked it at Resend. Choose **Connect** and sign in again.                                                                                               |
| The sign-in window does not open                                       | Your browser blocked it, so the page goes to the sign-in in the same tab. If nothing happens, allow pop-ups for Lyna and choose **Connect** again.                                   |
| No answer from the sign-in window yet                                  | If the window is still open, finish there. If you closed it, choose **Connect** again.                                                                                               |
| **The sign-in was cancelled.**                                         | You closed or declined Resend's page. Choose **Connect** and approve the access.                                                                                                     |
| **The service refused the sign-in.**                                   | Check that you used the right account and that your organization allows this access, then choose **Connect**.                                                                        |
| **The sign-in took too long. Start it again.**                         | Choose **Connect** and sign in again.                                                                                                                                                |
| **The sign-in worked, but the server did not answer.**                 | Choose **Test connection**.                                                                                                                                                          |
| **Not tested yet**                                                     | No test has answered. Choose **Test connection**.                                                                                                                                    |
| **Connection failed**                                                  | The page says why next to it. If the server did not answer, choose **Test connection**.                                                                                              |
| A call fails with a permission error                                   | **Connected** does not prove access to every piece of data. Resend refused the call with the rights of the account you connected. Check Permissions in Resend above, then try again. |
| **New tools to review**                                                | The server changed its list of tools, so Lyna stops using it until you decide. Read the list, then choose **Approve new tools**.                                                     |
| **Turned off**                                                         | Lyna AI does not use it. Choose **Turn on**.                                                                                                                                         |
| It needs a new sign-in. Only the person who connected it can give one. | Someone else connected it, and that sign-in ended. Ask that person to choose **Connect**.                                                                                            |
| The person who connected it left the workspace                         | The connection holds no key or sign-in. Choose **Connect** to use it again.                                                                                                          |
| Sending works, but reading domains or email status fails               | The sign-in only allows sending. Choose **Delete connection**, connect again and approve full access.                                                                                |
| An email is refused because of its sender                              | The sender's domain is not verified in Resend. Ask Lyna AI which DNS records are missing, add them at your DNS provider, and try again.                                              |
| An email to someone else does not arrive from `onboarding@resend.dev`  | That address only delivers to your own Resend account. Send from a verified domain.                                                                                                  |
| A send is refused because of a limit                                   | Your Resend plan or its rate limit stopped it. Check your plan in Resend, or wait and try again.                                                                                     |

### Disconnect

**Turn off** stops Lyna from using the connector and keeps your settings. **Remove from this project**, under **More options**, takes it out of this project only, and shows when another project uses it. **Delete connection**, in the same menu, removes it from every project, with what it stored, and says first how many projects lose it. If Resend lists Lyna among the applications your account has authorized, you can remove it there too.

## Related

- [Connectors](/integrations/connectors): What connectors are and how the chat uses them.
- [MCP servers](/features/ai/mcp-servers): Add a server with a request header.
- [Edge functions](/features/cloud/edge-functions): Run server code for your published app.
- [Chat modes](/features/ai/chat-modes): Build, Plan and Ask.
