-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailConfig.cs
More file actions
61 lines (49 loc) · 1.59 KB
/
EmailConfig.cs
File metadata and controls
61 lines (49 loc) · 1.59 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
namespace RamsonDevelopers.UtilEmail
{
/// <summary>
/// Configuration Class for email services
/// </summary>
public class EmailConfig
{
/// <summary>
/// Default label of the section in appSettings.json where the configuration settings lie.
/// </summary>
public static string SectionLabel { get; set; } = "MailConfiguration";
/// <summary>
/// Name of the SMTP Server the credentials belong to.
/// </summary>
public string Server { get; set; } = string.Empty;
/// <summary>
/// Port which the Server uses For SMTP
/// </summary>
public int Port { get; set; } = 25;
/// <summary>
/// Username of the sender
/// </summary>
public string UserName { get; set; } = string.Empty;
/// <summary>
/// Password to send emails on behalf of the Sender
/// </summary>
public string Password { get; set; } = string.Empty;
/// <summary>
/// To use SSL or TCP
/// </summary>
public bool UseSsl { get; set; } = true;
/// <summary>
///
/// </summary>
public string TargetName { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string FromName { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string FromAddress { get; set; } = string.Empty;
/// <summary>
///
/// </summary>
public string ReplyToAddress { get; set; } = string.Empty;
}
}