This commit is contained in:
eddiesoehnel committed 2026-08-15 15:05:39 -06:00
1 parent eac3d5dc45
commit 2a2b00733b
83 files changed
+4840

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
"""Provider-neutral delivery contract."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class SendResult:
request_id: str
message_id: str
class EmailProvider:
def send(self, *, recipient: str, subject: str, html_body: str, text_body: str, metadata: dict[str, str]) -> SendResult:
raise NotImplementedError
def suppressed_addresses(self) -> dict[str, str]:
"""Return normalized address-to-reason mappings from the provider."""
raise NotImplementedError