SetupEmail Setup
Resend Setup
Learn how to set up Resend for reliable email delivery
Setting Up Resend 📧
This guide will help you set up Resend for reliable email delivery in your application.
Prerequisites 📋
- A Resend account (sign up at resend.com)
- Access to your domain's DNS settings
- Domain verified in Resend
Domain Verification 🔍
- Go to Resend Dashboard
- Navigate to Domains > Add Domain
- Follow the DNS verification steps
- Add the provided DNS records to your domain
Implementation 💻
Install required dependencies:
Create src/lib/email/sendMail.ts
:
Environment Variables 🔐
Add these to your .env.local
:
Testing Email Setup 🧪
- Send a test email using Resend dashboard
- Monitor delivery in Resend logs
- Check email headers for proper authentication
Important Notes ⚠️
- DNS propagation takes time (24-48 hours)
- Monitor email reputation in Resend dashboard
- Keep bounce rate low
- Use production API key in production
Remember to wait for DNS propagation before testing your email setup. Rushing this process can lead to delivery issues! 🚀