# Send emails with Replit and Resend

[Replit](https://replit.com/) is a platform for building sites and apps with AI. You can add Resend in a Replit project by asking the chat to add email sending with Resend.

**Example prompt**

```
When someone fills out the contact form, send an email using Resend.
```

Prefer watching a video? Check out our video walkthrough below.

[YouTube video player](https://www.youtube.com/watch?v=gXwFWFMcnnY)

## Guide

:::::steps
:::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](https://resend.com/domains).
2. Add the custom domain to the `from` field in the `resend` function in Replit (or ask the chat to update these fields).

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

::::step{title="Add your Resend API key and from address"}
To use Resend with Replit, 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.

The from address is the email address that will be used to send emails. Use your custom domain you added in step 1 here (e.g., `hello@example.com`).

![adding the Resend integration to a Replit chat](../img/site-assets/mintcdn.com/resend/873NN72QQCCHs00J/images/replit-integration-vh8ivy.png)

:::callout{intent="note"}
Replit tracks the details of your Resend integration in the [Integrations
page](https://replit.com/integrations).
:::
::::
:::::

## Related pages

- [How to add the Resend integration to your Anything project](./build-with-ai-anything-integration.md)
- [Send emails with Lovable and Resend](./build-with-ai-lovable-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 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.
