added
This commit is contained in:
1 parent
eac3d5dc45
commit
2a2b00733b
83 files changed
+4840
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user