Email Setup
Learn how to set up and customize emails in your Indie Kit application
Email Setup 📧
Let's set up and customize your application's email system! 🚀
Email Authentication & Deliverability 📫
Before setting up your email provider, understand these critical email authentication protocols:
DKIM (DomainKeys Identified Mail) 🔑
- Digital signature that proves email authenticity
- Prevents email spoofing and tampering
- Consists of:
- Public key (published in DNS)
- Private key (used to sign emails)
- Most providers auto-generate DKIM keys
- Example DNS record:
SPF (Sender Policy Framework) 🛡️
- Specifies authorized servers to send emails
- Prevents unauthorized sending from your domain
- Single DNS TXT record listing allowed IPs/servers
- Example record:
DMARC (Domain-based Message Authentication) 📊
- Enforces SPF and DKIM policies
- Provides reporting on authentication failures
- Helps prevent domain spoofing
- Example record:
- Policy options:
p=none
: Monitor onlyp=quarantine
: Send to spam folderp=reject
: Reject emails
Additional Deliverability Tips 💡
-
Warm Up Your Domain 🌡️
- Start with low volume
- Gradually increase sending
- Monitor engagement metrics
- Use consistent sending patterns
-
List Hygiene 🧹
- Remove bounced emails
- Honor unsubscribe requests
- Validate email addresses
- Segment by engagement
-
Technical Setup ⚙️
- Set up reverse DNS (PTR records)
- Use dedicated IP (for high volume)
- Monitor IP/domain reputation
- Implement feedback loops
-
Content Best Practices 📝
- Balance text-to-image ratio
- Avoid spam trigger words
- Test with spam checkers
Choose Your Email Provider 📮
Select your preferred email provider:
Amazon SES
Set up Amazon Simple Email Service for production-ready email sending.
Resend
Modern email API with great deliverability and simple setup.
Mailgun
Powerful email service with excellent analytics and tracking.
Mailchimp
Popular email platform with HTML email support.
Email Designer ✨
-
Start the email designer:
This will launch the email designer at
http://localhost:3001
-
Use the designer to:
- Preview email templates
- Test responsive layouts
Customizing Email Layout 🎨
Customize your email branding in src/emails/components/layout.tsx
:
Creating Email Templates 📝
Customize welcome email in src/emails/components/Welcome.tsx
:
Testing Emails 🧪
-
Local Testing
- Use email designer at
localhost:3001
- Preview all templates
- Test with different data
- Check responsive design
- Use email designer at
-
Production Testing
- Send test emails to real addresses
- Verify deliverability
- Check spam scores
- Monitor open rates
Best Practices 💡
-
Design
- Keep emails responsive
- Use brand colors consistently
- Include plain text versions
- Optimize images
-
Content
- Clear subject lines
- Personalize content
- Include unsubscribe links
- Follow email regulations
-
Technical
- Set up SPF/DKIM
- Monitor bounce rates
- Handle email errors
- Track delivery status
Now your Indie Kit application is ready to send beautifully designed emails! 🎉