Class SmtpOptions
Configuration for the SMTP provider.
public sealed class SmtpOptions
- Inheritance
-
SmtpOptions
- Inherited Members
Constructors
SmtpOptions()
Initializes a new instance of the SmtpOptions class.
public SmtpOptions()
Properties
Host
The SMTP server host name or IP address.
public string? Host { get; set; }
Property Value
LocalDomain
The local domain used during the SMTP conversation (optional).
public string? LocalDomain { get; set; }
Property Value
Password
The login password (optional).
public string? Password { get; set; }
Property Value
Port
The SMTP server port (typically 25, 465, or 587).
public int Port { get; set; }
Property Value
SecureSocketOptions
How the connection is secured (defaults to auto-negotiation).
public SecureSocketOptions SecureSocketOptions { get; set; }
Property Value
TimeoutMilliseconds
The socket and command timeout in milliseconds.
public int TimeoutMilliseconds { get; set; }
Property Value
Username
The login user name (optional).
public string? Username { get; set; }