Class SmtpOptions
N-4 (Session C): SMTP transport configuration consumed by the e-mail dispatch route
(direct-vm://identity-email-send) and the SmtpEmailNotificationChannel.
Empty / disabled by default — a host either enables SMTP here or registers an
alternative IEmailNotificationChannel implementation (e.g. SendGrid, in-memory
channel for tests, or a noop channel that drops messages).
public sealed class SmtpOptions
Inheritance
Properties
Enabled
Master switch. When false the route is not built and no SMTP channel is registered.
public bool Enabled { get; set; }
FromAddress
Envelope From address used when the channel does not supply one per message.
public string FromAddress { get; set; }
Password
Optional password (omit for unauthenticated greenmail-style relays).
public string? Password { get; set; }
Port
SMTP server port. Common values: 25 (plain), 465 (Ssl), 587 (StartTls), 3025 (greenmail no-auth).
public int Port { get; set; }
Security
Security mode passed straight to the redb.Route.Mail builder
public string Security { get; set; }
SkipCertificateValidation
Skip TLS certificate validation. Test / dev only — never enable in production.
public bool SkipCertificateValidation { get; set; }
Username
Optional username (omit for unauthenticated greenmail-style relays).
public string? Username { get; set; }