SetupEmail Setup
Mailchimp Setup
Learn how to set up Mailchimp for HTML email delivery
Setting Up Mailchimp 📧
This guide will help you set up Mailchimp for sending HTML emails in your application.
Prerequisites 📋
- A Mailchimp account
- Access to your domain's DNS settings
- Domain verified in Mailchimp
- API key with send permissions
Domain Verification 🔍
- Go to Mailchimp Dashboard
- Navigate to Account > Domains
- Add and verify your domain
- Add the provided DNS records to your domain settings
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 Mailchimp dashboard
- Monitor delivery in Mailchimp Activity Feed
- Check email headers for proper authentication
Important Notes ⚠️
- DNS propagation takes time (24-48 hours)
- Monitor email reputation in Mailchimp dashboard
- Keep bounce rate below recommended threshold
- Use production API key in production
- Only HTML emails are supported
Remember to wait for DNS propagation before testing your email setup. Rushing this process can lead to delivery issues! 🚀