Connect Resend to your app
What is Resend?
Resend is a service that sends emails for apps — sign-in codes, receipts, reminders.
- What it costs
- Free to start, with no card: up to 3,000 emails a month (100 a day). Paid plans start at $20 a month if you need more.
- Time needed
- About 5 minutes for a test. Emailing real customers also needs your own web address (domain), which takes longer.
- If you skip it
- Your app still works. Only the emails it sends stay off until you connect it.
What you can build with Resend
How to get it, step by step
Create your key
- Open resend.com/signup and create an account.
- Open the API keys page: resend.com/api-keys.
- Press Create API Key and give it a name you will recognise, like the name of your app.
- For permission, choose Sending access — that is all your app needs.
- Copy the key straight away. Resend shows it only once.
Choose your sending address
- To test, your sending address can be onboarding@resend.dev — but it only delivers to the email you signed up with.
- To email real customers, open Domains and press Add Domain. Resend suggests a part of your web address just for email, like mail.yourshop.com.
- Resend shows a few records to add where you bought your web address. Copy each one exactly, then wait — it is often done in 15 minutes, sometimes up to 3 days.
Which value goes in which box
- Resend API key
RESEND_API_KEYKeep private - The key from the API keys page. It starts with re_ and is shown only once. An “API key” is a long code that lets your app use your account — like a password for apps.
- Sending address
RESEND_FROM_EMAILNot secret - The address your emails come from. To test, use onboarding@resend.dev (it only reaches your own email). For real customers, use an address on the domain you added, like hello@yourshop.com.
Watch out for
- The key is shown only once. If you lose it, make a new one.
- Keep the key private, like a password.
- A Gmail or Yahoo address cannot be your sending address — it must be on a domain you added to Resend, or onboarding@resend.dev for testing.
- If emails fail with “You can only send testing emails to your own email address”, it is the test address. Add your own domain.