50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
namespace Koogle.Infrastructure.Configuration;
|
|
|
|
/// <summary>
|
|
/// SMTP configuration for email sending (global settings).
|
|
/// </summary>
|
|
public class SmtpSettings
|
|
{
|
|
public const string SectionName = "SmtpSettings";
|
|
|
|
/// <summary>
|
|
/// Host name of the SMTP server.
|
|
/// </summary>
|
|
public string Host { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Port number (default: 587 for TLS).
|
|
/// </summary>
|
|
public int Port { get; set; } = 587;
|
|
|
|
/// <summary>
|
|
/// Username for SMTP authentication.
|
|
/// </summary>
|
|
public string Username { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Password for SMTP authentication.
|
|
/// </summary>
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Use SSL/TLS encryption.
|
|
/// </summary>
|
|
public bool UseSsl { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Default sender email if club has none configured.
|
|
/// </summary>
|
|
public string DefaultSenderEmail { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Default sender display name.
|
|
/// </summary>
|
|
public string DefaultSenderName { get; set; } = "KOOGLE";
|
|
|
|
/// <summary>
|
|
/// Enable/disable email sending globally.
|
|
/// </summary>
|
|
public bool Enabled { get; set; } = true;
|
|
}
|