mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-19 17:03:02 +00:00
15 lines
410 B
Python
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``."""
|
|
...
|