refactor: channel holds delivery config only — remove AppDisplayName, AppBaseUrl
- 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>
This commit is contained in:
@@ -9,13 +9,11 @@ public class SmtpChannelSettings : EmailChannelSettings
|
||||
{
|
||||
public override EmailChannelType EmailChannelType => EmailChannelType.Smtp;
|
||||
|
||||
public required string Host { get; set; }
|
||||
public string Host { get; set; } = string.Empty;
|
||||
public int Port { get; set; } = 587;
|
||||
public required string Username { get; set; }
|
||||
public required string Password { get; set; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public bool UseSsl { get; set; } = true;
|
||||
public required string FromEmail { get; set; }
|
||||
public required string FromName { get; set; }
|
||||
public required string AppDisplayName { get; set; }
|
||||
public required string AppBaseUrl { get; set; }
|
||||
public string FromEmail { get; set; } = string.Empty;
|
||||
public string FromName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user