Infrastructure medium complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Outbound infrastructure component that connects to a third-party email delivery provider to transmit messages over SMTP or provider API. Handles authentication, rate limiting, bounce and delivery status callbacks, and provides a future expansion path for an SMS gateway.

Feature: Email/SMS Notifications

email-gateway

Sources & reasoning

Subprocessor list confirms Mailgun is planned for transactional email and SMS provider is explicitly tracked as not yet in use. Phase classification follows the 'planned' status - beyond MVP but part of core notification coverage, hence Core Product.

Responsibilities

  • Authenticate and connect to the external email delivery provider
  • Transmit rendered messages and surface provider-level errors
  • Apply rate limiting and retry policies for transient failures
  • Receive and forward bounce, complaint, and delivery status webhooks
  • Expose a uniform dispatch interface to allow future SMS provider integration

Interfaces

dispatch(message): ProviderResponse
handleWebhook(payload): DeliveryEvent
getDeliveryStatus(messageId): DeliveryStatus