Add CC and BCC to emails

This commit is contained in:
Nicolas Dorier
2025-11-08 22:42:45 +09:00
parent d7fcd55707
commit dcf60e20b9
16 changed files with 442 additions and 177 deletions

View File

@@ -1,4 +1,6 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Plugins.Emails.Views;
@@ -9,16 +11,21 @@ public class EmailTriggerViewModel
{
public class Default
{
public string SubjectExample { get; set; }
public string BodyExample { get; set; }
public string Subject { get; set; }
public string Body { get; set; }
public string[] To { get; set; } = Array.Empty<string>();
[JsonProperty("cc")]
public string[] CC { get; set; } = Array.Empty<string>();
[JsonProperty("bcc")]
public string[] BCC { get; set; } = Array.Empty<string>();
public bool CanIncludeCustomerEmail { get; set; }
public string RecipientExample { get; set; }
}
public string Trigger { get; set; }
public string Description { get; set; }
public Default DefaultEmail { get; set; }
public class PlaceHolder(string name, string description)
{