mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Add CC and BCC to emails
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user