Email Delivery Infrastructure
Component Detail
Infrastructure
low complexity
Shared Component
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Adapter layer wrapping the transactional email provider (Resend or SendGrid) used for all outbound system emails. Provides a uniform interface for template-based email dispatch, delivery status webhooks, and provider failover configuration.
email-delivery-infrastructure
Responsibilities
- Abstract transactional email provider behind a uniform interface
- Send emails using named templates with variable substitution
- Handle provider API errors and retry logic
- Receive and process delivery status webhook events
Interfaces
sendEmail(to, templateId, variables)
sendBulkEmail(recipients, templateId, variables)
getDeliveryStatus(messageId)
handleDeliveryWebhook(payload)
listTemplates()
healthCheck()