Interface IEmailNotificationChannel
N-4 (Session C): SPI for delivering identity-system transactional e-mails
(password reset, account-verification, change-of-email confirmation, etc.) via the
host's mail infrastructure.
Mirrors the role plays for SMS/Email OTP delivery:
the Core defines only the contract; concrete implementations (SMTP, SendGrid, in-memory
test capture) are registered by the host application or by satellite packages.
Templates are referenced by a stable templateId string (e.g. "password-reset");
the implementation resolves the localized body and the variable substitution. Core
passes the values as a flat dictionary keyed by template-variable names (e.g.
userName, resetLink, ttlMinutes).
public interface IEmailNotificationChannel
Methods
SendTemplateAsync(string, string, IReadOnlyDictionary<string, string>, CancellationToken)
Renders templateId with the supplied vars and
Task SendTemplateAsync(string to, string templateId, IReadOnlyDictionary<string, string> vars, CancellationToken ct = default)