Model/repositories/email/email_sender.py
Khalim Conn-Kowlessar 7466b78e54 Send a document-download email to the requesting user over SES SMTP 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 09:25:56 +00:00

15 lines
410 B
Python

"""The outbound-email port (ADR-0059).
A narrow interface the orchestrator depends on to notify a user, so the
transport (SES over SMTP today) stays swappable and testable behind it.
"""
from __future__ import annotations
from typing import Protocol
class EmailSender(Protocol):
def send(self, *, to: str, subject: str, body: str) -> None:
"""Send a plain-text email to ``to``."""
...