Overview
The Email Member enables Conductor ensembles to send emails with:- Multiple providers: Cloudflare Email, Resend, SMTP
- Template rendering: Handlebars with KV storage support
- Batch sending: Rate-limited mass email delivery
- Email tracking: Custom headers for analytics
- Attachments: File attachments support
- HTML & Plain text: Automatic plain text generation
Quick Start
Email Providers
Cloudflare Email (Recommended)
Zero-configuration email sending via Cloudflare Email Routing.Resend
Best developer experience with simple API.SMTP
Generic SMTP for any mail server.Templates
Inline HTML
KV Templates
Store versioned templates in KV for instant updates without Worker rebuilds.kv://templates/email/welcome@v1.0.0):
Template Versions
Batch Sending
Send personalized emails to multiple recipients with rate limiting.Rate Limiting
Control sending rate to respect provider limits:Email Tracking
Enable tracking headers for analytics:X-Conductor-Tracking: enabledX-Conductor-Ensemble: ensemble-name
Attachments
Send files with your emails:CC & BCC
Reply-To
Set a different reply address:Custom Headers
Add custom email headers:Tags & Metadata
Organize and track emails:Error Handling
Handle email failures gracefully:Complete Example
Configuration Reference
Provider Config
Member Config
Input Schema
Output Schema
Single Email:Best Practices
Security
Security
- Store API keys in secrets, not environment variables
- Use DKIM signing for authentication
- Validate recipient email addresses
- Implement rate limiting to prevent abuse
- Use separate providers for transactional vs marketing emails
Performance
Performance
- Use batch sending for multiple recipients
- Store templates in KV for instant updates
- Set appropriate rate limits per provider
- Cache rendered templates when possible
- Use async execution for non-critical emails
Deliverability
Deliverability
- Always provide plain text version
- Use descriptive subject lines
- Include unsubscribe links
- Implement proper SPF/DKIM/DMARC records
- Test templates across email clients
- Monitor bounce and complaint rates
Development
Development
- Use templates for maintainability
- Version templates with Edgit
- Test with TestConductor mocks
- Log all email operations
- Handle errors gracefully with fallbacks

