SetupEmail Setup
Amazon SES Setup
Learn how to set up Amazon SES with proper DNS records for reliable email delivery
Setting Up Amazon SES 📧
This guide will help you set up Amazon Simple Email Service (SES) with proper DNS records to ensure reliable email delivery and prevent your emails from being marked as spam.
Prerequisites 📋
- An AWS account
- Access to your domain's DNS settings
- Domain verified in AWS SES
- A production SES account (out of sandbox)
Domain Verification 🔍
- Go to AWS SES Console
- Click "Verified Identities" > "Create Identity"
- Choose "Domain" and enter your domain name
- Important: Use AWS-provided DKIM, DMARC, and SPF records
- Copy the DNS records from AWS dashboard
- Add them to your domain's DNS settings
Requesting Production Access 🚀
When applying for production access, use this template:
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 AWS SES console
- Check email headers for proper DKIM alignment
- Use AWS SES dashboard to track bounces and complaints
Important Notes ⚠️
- DNS propagation takes time (24-48 hours)
- Start in SES sandbox for testing
- Request production access before sending bulk emails
- Keep bounce rate below 5%
- Monitor email reputation regularly
Remember to wait for DNS propagation before testing your email setup. Rushing this process can lead to delivery issues! 🚀