Skip to content

src/dazzle_back/email/outbound.py

Generated: 2026-03-30T04:38:45.970119+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Outbound email sending with event emission.

Handles sending emails and emitting the appropriate events: - email.send.requested (written to outbox) - email.sent (on success) - email.failed (on failure) - email.bounced (async notification)

This module bridges the existing channel adapters with the e...

Key Exports

  • EmailSendStatus
  • EmailMessage
  • EmailSendResult
  • EmailSender
  • EmailEventConsumer
  • provider
  • send
  • handle_send_requested

Dependencies

Imports

  • __future__.annotations
  • logging
  • uuid
  • dataclasses.dataclass
  • datetime.UTC
  • datetime.datetime
  • enum.StrEnum
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle.core.ir.email.EmailFailedEvent
  • dazzle.core.ir.email.EmailProvider
  • dazzle.core.ir.email.EmailSendRequestedEvent
  • dazzle.core.ir.email.EmailSentEvent
  • channels.adapters.base.EmailAdapter
  • channels.outbox.OutboxMessage

Event Interactions

Emits: EmailFailedEvent, EmailMessage, EmailSendRequestedEvent, EmailSentEvent

Invariants and Assumptions

No invariants documented.

Tests

No related tests found.

Notes

This page was automatically generated by tools/gen_reference_docs.py.