Replit 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.

1. Add your Resend API key

To use Resend with Replit, 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.

Replit can track all your API keys and other secrets as encrypted environment variables in your account’s Secrets workspace. Secrets stored in this tool are available across all your projects, so adding your Resend API key here is a good way to keep it safe and accessible.

2. 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.
  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.