Files
automation-based-email-list…/src/email_list/providers/base.py
T
2026-08-15 15:05:39 -06:00

21 lines
546 B
Python

"""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