EmailConfiguration

Options & Configuration · AiDotNet.TrainingMonitoring.Notifications

Configuration for email notification service.

Constructors

Constructor Summary
EmailConfiguration()

Properties

Property Summary
List<string> CcAddresses { get; set; } Gets or sets CC email addresses.
List<string> ToAddresses { get; set; } Gets or sets the recipient email addresses.
bool EnableSsl { get; set; } Gets or sets whether to use SSL/TLS.
bool UseHtml { get; set; } Gets or sets whether to send HTML emails.
int SmtpPort { get; set; } Gets or sets the SMTP server port.
int TimeoutMs { get; set; } Gets or sets the connection timeout in milliseconds.
string FromAddress { get; set; } Gets or sets the sender email address.
string FromName { get; set; } Gets or sets the sender display name.
string Password { get; set; } Gets or sets the password for SMTP authentication.
string SmtpHost { get; set; } Gets or sets the SMTP server host.
string Username { get; set; } Gets or sets the username for SMTP authentication.

Methods

Method Summary
EmailConfiguration ForGmail(string email, string appPassword, string[] toAddresses) Creates a Gmail configuration.
EmailConfiguration ForOutlook(string email, string password, string[] toAddresses) Creates an Outlook/Office365 configuration.
bool IsValid() Validates the configuration.