Resend Email Service
Send real email in production and local development with Resend
Resend Email Service
Resend sends email using an API key. Once configured, users can receive sign-up verification, password reset, and email verification code messages in their own inboxes.
Enable email sending in production
Create a Resend API Key
- Create an account at resend.com
- Open the API Keys page
- Click Create API Key
- Select Sending access
- Copy the API Key immediately after creating it
The key starts with re_ and is only displayed once, so store it safely.
Verify your sender domain
- Open Domains in Resend
- Click Add Domain and enter your sender domain
- Add the DNS records shown by Resend to your DNS provider
- Return to Resend and click Verify DNS Records
- Wait until the domain is verified
Once verified, you can send from an address such as noreply@yourdomain.com.
Add the production configuration
Add RESEND_API_KEY to apps/server/.env.production:
RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxThen select Resend in packages/app-config/src/app-config.ts and enter the verified domain:
email: {
provider: "resend",
from: {
localPart: "noreply",
domain: "yourdomain.com",
},
},Deploy and receive a test email
Push the production secrets and deploy the server normally. After deployment, use a real address to trigger sign-up verification, forgot password, or an email verification code.
Receiving the message confirms that production sending is active. If it does not appear immediately, check the spam folder and Resend Logs.
Receive real email during local development
Add the same RESEND_API_KEY to apps/server/.dev.vars:
RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMake sure the email provider is set to resend, restart the local server, and trigger sign-up verification, forgot password, or an email verification code. The message will be delivered directly to the test address you entered.
During initial testing, Resend allows you to send to the email address registered with your Resend account. Verify your sender domain before sending to other users. If the message does not arrive, check the spam folder and Resend Logs.