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

Description

Infrastructure adapter that formats and dispatches tokenized invitation emails via the platform's email provider. Constructs the registration URL with the embedded token and handles delivery errors with retry logic.

Feature: User CRUD

invitation-email-sender

Sources & reasoning

Invitation flow requires email delivery infrastructure. Isolating this as an infrastructure adapter allows the email provider to be swapped without touching service logic, and the component is shared with notification email delivery.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Compose invitation email with tokenized registration link
  • Dispatch email via configured email provider (SMTP or transactional API)
  • Handle delivery failures and surface errors to the calling service

Interfaces

sendInvite(to: string, registrationUrl: string): Promise<void>