Class SmtpOptions
- Namespace
- Dynamicweb.Mailing
- Assembly
- Dynamicweb.Core.dll
Configuration options for SMTP (Simple Mail Transfer Protocol) client settings. Contains all necessary parameters to establish connection and authenticate with an SMTP server.
public sealed class SmtpOptions
- Inheritance
-
SmtpOptions
- Inherited Members
Properties
AccessTokenOptions
Get or set the access token authentication options
public AccessTokenOptions? AccessTokenOptions { get; set; }
Property Value
AuthenticationMode
Get or set type of authentication
public SmtpAuthenticationMode AuthenticationMode { get; set; }
Property Value
Host
Get or set the SMTP server host name or IP address
public string? Host { get; set; }
Property Value
Password
Get or set the Authentication password
public string? Password { get; set; }
Property Value
Port
Get or set the SMTP server port (25, 587, 465)
public int Port { get; set; }
Property Value
Timeout
Get or set the Operation timeout in milliseconds
public int Timeout { get; set; }
Property Value
UseSsl
Get or set whether to use SSL/TLS encryption from connection start
public bool UseSsl { get; set; }
Property Value
Username
Get or set the Authentication username
public string? Username { get; set; }