# Resend

> This page is about FlutterFlow (the app builder you use by describing your app), not FlutterFlow Studio.

URL: https://docs.flutterflow.io/ffx/resend

Connect a Resend API key, and then ask the agent for a feature that sends email from a domain that you verified in Resend.

Send email from your app with Resend, such as a receipt or a confirmation. You need a Resend API key with sending access, and a domain that you verified in Resend.

## Connect Resend {#connect-resend}

To connect Resend, you must be a project owner. Owners and developers on the project can use Resend after an owner connects it. Create an API key with sending access in Resend under API Keys. The key starts with `re_`.

1. Open **Project Settings › Connections**.
2. Turn on the switch for **Resend**. The **Connect Resend** dialog opens.
3. If the dialog lists keys from your other apps, choose one, or click **Paste an API key**. Paste the key into **API key**. To open Resend's API keys page, click **Find it** beside the label.
4. Click **Connect**.

Resend checks the key before FlutterFlow saves the [connection](https://docs.flutterflow.io/ffx/glossary#backend-and-data), and FlutterFlow never shows the key again. For more information, see [Connect a service](https://docs.flutterflow.io/ffx/connect-a-service).

## Sending domain {#sending-domain}

Resend sends email only from a domain that you verified in Resend. Only you can verify it: add the domain in Resend under Domains, and then, at your DNS provider, add the DNS records that Resend shows.

Until a domain is verified, Resend sends only from `onboarding@resend.dev`, and only to the email address of your Resend account. That's enough to try the feature, but not to email the people who use your app.

## What to ask

To ask for an email feature, tell the agent what triggers the email, who receives it, and the address it comes from:

> Example request: "When a signed-in person adds a transaction over 500, email them a receipt with the payee and the amount, from receipts@example.com."

> Example request: "When someone sends the feedback form, email their message to me from feedback@example.com."

## Who gets email {#who-gets-email}

Your app sends every email from your domain on your Resend account. In your request, name who receives each email, such as you or the person who's signed in, rather than an address that people who use your app type in. A feature that lets anyone choose the address lets anyone send email from your domain.

## Agent questions

If Resend isn't connected, the agent asks you to connect it in a card above the message box, with a **Connect Resend** button. If you aren't a project owner, ask one to connect Resend. The agent may also ask which verified domain to send from. See [Connect when the agent asks](https://docs.flutterflow.io/ffx/connect-a-service#connect-when-the-agent-asks).

## Review

After the agent finishes, read the turn's [**Summary**](https://docs.flutterflow.io/ffx/what-changed#summary) and review its [**Changes**](https://docs.flutterflow.io/ffx/what-changed#changes-tab). Check the affected screens in **Screens**, and try the change in **Preview**. If the change uses records or sign-in, test it with [the thread's own data in **Data**](https://docs.flutterflow.io/ffx/thread-data).

After you push a backend change, check the result in **Backend**.

Calls from the preview are real, so testing the feature sends real email. Send a test to your own address. See [How connections work](https://docs.flutterflow.io/ffx/connections#preview-calls-are-real).

## Call limit {#call-limit}

Your app and the agent share a limit of 60 calls a minute to Resend through your app's connection. See [Limits](https://docs.flutterflow.io/ffx/limits#connections).

## Push

After you test the feature, [push the changes to your app](https://docs.flutterflow.io/ffx/push).

## Next steps

- To replace the key or disconnect Resend, see [Manage connections](https://docs.flutterflow.io/ffx/manage-connections).
- To see the other services that you can connect, see [Available services](https://docs.flutterflow.io/ffx/services).

## Troubleshooting

- **The dialog says "Resend API keys start with re_, then a long code. Check you copied all of it.":** in Resend, copy the whole key again, and then paste it.
- **Resend refuses the key:** see [A service refuses your key](https://docs.flutterflow.io/ffx/troubleshoot-connections#key-refused).
- **Email reaches only your own address:** verify your domain in Resend. See [Sending domain](#sending-domain).
- **Your app shows a message about the service:** see [Messages shown in your app](https://docs.flutterflow.io/ffx/troubleshoot-connections#app-messages).
