2b272e989b
- SmtpChannelSettings: Host, Port, Username, Password, UseSsl, FromEmail, FromName only - AppDisplayName and AppBaseUrl moved to template variables (payload responsibility) - Updated ViewModel, controller Save/Edit mapping, and Edit view accordingly Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20 lines
682 B
C#
20 lines
682 B
C#
namespace HrynCo.NotificationService.DAL.Abstract.Providers;
|
|
|
|
public abstract class EmailChannelSettings
|
|
{
|
|
public abstract EmailChannelType EmailChannelType { get; }
|
|
}
|
|
|
|
public class SmtpChannelSettings : EmailChannelSettings
|
|
{
|
|
public override EmailChannelType EmailChannelType => EmailChannelType.Smtp;
|
|
|
|
public string Host { get; set; } = string.Empty;
|
|
public int Port { get; set; } = 587;
|
|
public string Username { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public bool UseSsl { get; set; } = true;
|
|
public string FromEmail { get; set; } = string.Empty;
|
|
public string FromName { get; set; } = string.Empty;
|
|
}
|