Table of Contents

Class SmtpOptions

Namespace
MailForge.Smtp
Assembly
MailForge.Smtp.dll

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

string

LocalDomain

The local domain used during the SMTP conversation (optional).

public string? LocalDomain { get; set; }

Property Value

string

Password

The login password (optional).

public string? Password { get; set; }

Property Value

string

Port

The SMTP server port (typically 25, 465, or 587).

public int Port { get; set; }

Property Value

int

SecureSocketOptions

How the connection is secured (defaults to auto-negotiation).

public SecureSocketOptions SecureSocketOptions { get; set; }

Property Value

SecureSocketOptions

TimeoutMilliseconds

The socket and command timeout in milliseconds.

public int TimeoutMilliseconds { get; set; }

Property Value

int

Username

The login user name (optional).

public string? Username { get; set; }

Property Value

string