Email Provider Adapter
Component Detail
Infrastructure
low complexity
Shared Component
backend
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Infrastructure adapter that abstracts the transactional email provider (e.g., Resend or SendGrid) behind a unified interface. Manages API authentication, rate limiting, and delivery webhook handling for email status tracking.
email-provider-adapter
Responsibilities
- Abstract transactional email provider API
- Handle API authentication and rate limiting
- Process delivery status webhooks
- Support template-based email rendering
Interfaces
send(to: string, subject: string, html: string)
getStatus(messageId: string)
handleWebhook(payload: WebhookEvent)