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

Description

Wraps the SendGrid or Postmark API client to deliver multi-part HTML emails from Next.js API routes, handling authentication, exponential-backoff retries, and provider-specific error mapping.

Feature: Email/SMS Notifications

transactional-email-provider

Responsibilities

  • Send multi-part HTML email via SendGrid or Postmark using environment-configured API credentials
  • Apply exponential backoff with jitter on transient provider failures before surfacing a typed exception
  • Map provider HTTP status codes and error bodies to internal retry-safe exception types

Interfaces

send(to, subject, htmlBody, textBody, headers)
getMessageStatus(messageId)