-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathEmailData.cs
More file actions
39 lines (34 loc) · 1.39 KB
/
EmailData.cs
File metadata and controls
39 lines (34 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Collections.Generic;
namespace FluentEmail.Core.Models
{
public class EmailData
{
public List<Address> ToAddresses { get; set; }
public List<Address> CcAddresses { get; set; }
public List<Address> BccAddresses { get; set; }
public List<Address> ReplyToAddresses { get; set; }
public List<Attachment> Attachments { get; set; }
public Address FromAddress { get; set; }
public string Subject { get; set; }
public string Body { get; set; }
public string PlaintextAlternativeBody { get; set; }
public Priority Priority { get; set; }
public List<string> Tags { get; set; }
public string MailGunTemplate { get; set; }
public bool IsHtml { get; set; }
public Dictionary<string, string> Headers { get; set; }
public Dictionary<string, string> MailGunTemplateVars { get; set; }
public EmailData()
{
ToAddresses = new List<Address>();
CcAddresses = new List<Address>();
BccAddresses = new List<Address>();
ReplyToAddresses = new List<Address>();
Attachments = new List<Attachment>();
Tags = new List<string>();
Headers = new Dictionary<string, string>();
MailGunTemplate = string.Empty;
MailGunTemplateVars = new Dictionary<string, string>();
}
}
}