Send emails with Lovable and Resend
Lovable 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.
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. 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.

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:
- Add a custom domain to your Resend account.
- Add the custom domain to the
fromfield in theresendfunction in Lovable (or ask the chat to update these fields).
Get more help adding a custom domain in Resend's documentation.