Emails
You don’t have to use resend, but you’ll need an email tool to setup magic login links, abandoned carts emails, etc.
Resend silently removed their “pay-as-you-go” free tier from their pricing page, but it’s still there.Start a free trial for the $20 tier, then cancel it. You’ll be downgraded to the pay-as-you-go free tier. If you send <3000 emails/mo you’ll pay $1/mo.
Setup
1. Create a new account onResend.
2. Navigate to the domain settings in your Resend dashboard.
3. Add your domain or a subdomain (e.g., mail.yourdomain.com).

4. Follow the instructions provided to add the necessary DNS records (SPF, DKIM, and CNAME) to verify your domain.
5. Wait for DNS propagation and Resend to verify your domain.

6. Add an additional DMARC record to your DNS:
DMARC Record
TXT | _dmarc.mail.yourdomain.com | v=DMARC1; p=none
7. Go to the API section in your Resend dashboard.
8. Create a new API key for sending emails.

9. Store this key securely; you’ll need it for your application.
10. If Resend provides SMTP credentials, find them in your dashboard.
11. In your .env file, set EMAIL_SERVER with the SMTP credentials provided by Resend.
12. Add the Resend API key to your environment variables:
.env
RESEND_API_KEY=your_resend_api_key
Sending Emails
There are two ways to send emails:
1. SMTP: Use this method for emails like magic login links.
2. Resend API: Use the Resend API for sending other types of emails; implement a function in your application to handle this.
Receiving Emails
Resend doesn’t forward emails automatically, so you will need to set up routes to handle incoming emails.
Go to the routing section in your Resend dashboard.
Create a route to match emails sent to your support email (e.g., support@yourdomain.com) and forward them to your API endpoint (e.g., https://your-domain.com/api/webhook/resend).
Set up an endpoint in your server to receive and process incoming emails.
Ensure that the forwarded emails include the original sender in the reply-to header so you can reply directly from your inbox.
Check your records are valid onMXToolbox(enter your subdomain if you used one).