# Send emails with Lovable and Resend

[Lovable](https://lovable.dev) is a platform for building web sites, tools, apps, and projects via chat. You can add Resend in a Lovable project by asking the chat to add email sending with Resend.

If you prefer to watch a video, check out our video walkthrough below.

::video{#0gw693uZt0w provider="youtube" title="YouTube video player"}

## Guide

:::::steps
::::step{title="Add your Resend API key"}
To use Resend with Lovable, you'll need to add a Resend API key, which you can create in the [Resend Dashboard](https://resend.com/api-keys). Do not share your API key with others or expose it in the browser or other client-side code.

Lovable may integrate Resend in a few different ways:

- Use the Supabase integration to store the API key **(highly recommended)**
- Ask users to provide their own API key
- Add the API key directly in the code

You may need to prompt Lovable to store the API key for Resend using Supabase. Clicking **Add API key** will open a modal where you can add the API key.

![adding the Resend integration to a Lovable chat](../img/site-assets/mintcdn.com/resend/OWNnQaVDyqcGyhhN/images/lovable-integration-vn9rwl.png)

:::callout{intent="info"}
At the time of writing, Lovable does not securely handle API keys
independently. Instead, it uses the [Supabase integration to store
secrets](https://docs.lovable.dev/integrations/supabase#storing-secrets-api-keys-%26-config).
:::
::::

::::step{title="Add a custom domain to your Resend account"}
By default, you can only send emails to your own email address.

To send emails to other email addresses:

1. Add a [custom domain to your Resend account](/guides/get-started-add-a-domain).
2. Add the custom domain to the `from` field in the `resend` function in Lovable (or ask the chat to update these fields).

:::callout{intent="info"}
By default, Lovable deploys using the test domain `resend.dev`. Once your custom domain is verified, the function does not automatically redeploy or update the sender address.

You’ll need to ask Lovable to manually update the `From` email to use your verified domain and then redeploy the function so the changes take effect.
:::

Get more help adding a custom domain in [Resend's documentation](/guides/learn-dashboard-domains-introduction).
::::
:::::

## Related pages

- [How to add the Resend integration to your Anything project](./build-with-ai-anything-integration.md)
- [Send emails with v0 and Resend](./build-with-ai-v0-integration.md)
- [Send emails with Bolt.new and Resend](./build-with-ai-bolt-new-integration.md)
- [Send emails with Replit and Resend](./build-with-ai-replit-integration.md)
- [Send emails with Base44 and Resend](./build-with-ai-base44-integration.md)
- [Send emails with Leap and Resend](./build-with-ai-leap-new-integration.md)
- [Send emails with Appwrite and Resend](./build-with-ai-appwrite-integration.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
