Class SmtpEmailNotificationChannel
N-4 (Session C): production backed by the
redb.Route.Mail SMTP DSL. Renders the requested template through
and forwards the resulting message to
, which the host route builder wires to a
Smtp.Send(...) producer when is true.
The channel only knows about route URIs and exchange headers — concrete SMTP details
(host / port / credentials / TLS) live entirely on the route definition, exactly as
the rest of the redb.Route ecosystem expects. This keeps the abstraction transport-
agnostic: swapping SMTP for SendGrid is a route change, not a channel change.
public sealed class SmtpEmailNotificationChannel : IEmailNotificationChannel, IDisposable
Inheritance
Implements
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
SendTemplateAsync(string, string, IReadOnlyDictionary<string, string>, CancellationToken)
Renders templateId with the supplied vars and
public Task SendTemplateAsync(string to, string templateId, IReadOnlyDictionary<string, string> vars, CancellationToken ct = default)