Overview
Learn about Plainform's email system using Resend for transactional emails and Mailchimp for newsletter management
Plainform uses a dual email system: Resend for transactional emails and Mailchimp for newsletter management. This combination provides reliable email delivery with professional templates and audience management.
Email Services
Resend (Transactional Emails)
Resend handles automated, one-to-one emails triggered by user actions:
- Order confirmations and receipts
- Welcome emails and onboarding
- Notifications and alerts
- Custom transactional emails
Resend is configured in lib/resend/resend.ts and provides:
- High deliverability rates
- React-based email templates
- Simple API integration
- DNS configuration for custom domains
Mailchimp (Newsletter Management)
Mailchimp manages marketing emails and subscriber lists:
- Newsletter subscriptions
- Marketing campaigns
- Audience segmentation
- Email analytics
Mailchimp is integrated via API in app/api/resend/newsletter/route.ts and provides:
- Subscriber list management
- Campaign creation and scheduling
- Email templates and design tools
- Analytics and reporting
Key Features
- Transactional Emails: Send automated emails using Resend's API
- Newsletter Subscriptions: Manage subscribers with Mailchimp audiences
- Email Templates: Create React-based templates for Resend emails
- DNS Setup: Configure domain settings for email deliverability
- Rate Limiting: Protect newsletter signup endpoint from abuse
- Environment Validation: All API keys validated by t3-env
Architecture
User Action
↓
Transactional Email → Resend API → User Inbox
Newsletter Signup → Mailchimp API → Subscriber ListEmail templates are stored in emails/ folder and use React components for Resend emails.
Next Steps
- Setup and Configuration - Configure Resend and Mailchimp
- Usage and Integration - Send emails and manage subscribers
- Troubleshooting - Common issues and solutions
How is this guide ?
Last updated on