Implement mail service with configuration and settings management
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
|
||||
public bool DisableStepIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the mail server settings.
|
||||
/// </summary>
|
||||
public MailSettings Mail { get; set; } = new();
|
||||
|
||||
public TermSettings Terms { get; set; } = new();
|
||||
|
||||
public bool TestMode { get; set; }
|
||||
|
||||
38
FoodsharingSiegen.Contracts/Model/MailSettings.cs
Normal file
38
FoodsharingSiegen.Contracts/Model/MailSettings.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace FoodsharingSiegen.Contracts.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration settings for the mail service.
|
||||
/// </summary>
|
||||
public class MailSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the SMTP server host.
|
||||
/// </summary>
|
||||
public string Host { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the SMTP port.
|
||||
/// </summary>
|
||||
public int Port { get; set; } = 587;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the username for SMTP authentication.
|
||||
/// </summary>
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the password for SMTP authentication.
|
||||
/// </summary>
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the sender address.
|
||||
/// </summary>
|
||||
public string FromAddress { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether to use SSL/TLS connection.
|
||||
/// </summary>
|
||||
public bool UseSsl { get; set; } = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user