-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmtpSetup.cs
53 lines (44 loc) · 1.53 KB
/
SmtpSetup.cs
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
using TeleScope.Connectors.Abstractions.Secrets;
namespace TeleScope.Connectors.Smtp
{
/// <summary>
/// This class encapsulates the settings for the <seealso cref="SmtpConnector"/> type.
/// </summary>
public class SmtpSetup
{
// -- properties
/// <summary>
/// Gets or sets the host for the smtp connection.
/// </summary>
public string Host { get; set; }
/// <summary>
/// Gets or set the sending email address.
/// </summary>
public string Sender { get; set; }
/// <summary>
/// Gets or sets the port for the smtp connection.
///
/// **Please note the default ports:**
/// * Port 25 (non-secure) - this is the default port (often times blocked by your ISP - Internet Service Provider)
/// * Port 26 (non-secure) - use port 26 if port 25 is not working and is blocked by your ISP
/// * Port 465 (secure - SSL) - this is to be used to send email via SMTP securely over SSL
/// * Port 587 (secure - TLS) - this is to be used to send email via SMTP securely over TLS
/// </summary>
public int Port { get; set; }
/// <summary>
/// Gets or sets all receivers that are addressed by sending an email.
/// </summary>
public string[] Receivers { get; set; }
/// <summary>
/// Gets or sets the connection information (e.g. name and passwort) of type <seealso cref="ISecret"/>.
/// </summary>
public ISecret Credentials { get; set; }
// -- constructor
/// <summary>
/// The default empty constructor sets the retry limit to its default value.
/// </summary>
public SmtpSetup()
{
}
}
}