403 Error Using resend.dev Domain
You may receive a 403 error with the following message when trying to send emails:
You can only send testing emails to your own email address (your-email-address@domain.com).
To send emails to other recipients, please verify a domain at resend.com/domains, and change
the `from` address to an email using this domain.The Problem
Section titled “The Problem”You're using the default resend.dev domain while sending to email addresses other than your own.
Example scenario:
- Your API request uses
from: 'onboarding@resend.dev' - You're trying to send to recipients other than your own email address
Why This Happens
Section titled “Why This Happens”The resend.dev domain is only available for testing purposes and can only send emails to the email address associated with your Resend account. This restriction helps protect domain reputation and ensures proper email deliverability.
Solution
Section titled “Solution”To send emails to recipients other than your own email address, you need to add and verify your own domain in Resend:
- Go to the Domains page in your Resend dashboard
- Click Add Domain
- Enter your domain name
- Follow the verification steps to add the required DNS records
- Once verified, update your API request to use your verified domain
If You're Still Having Issues
Section titled “If You're Still Having Issues”If you've verified your domain and updated your API request but you're still getting a 403 error:
- Verify that your domain is fully verified in the Resend Domains page.
- Ensure the domain in your API request's
fromfield uses your verified domain (notresend.dev). - Make sure you're not trying to send to your own email address when using
resend.dev. - Contact Resend support with details about your error.