-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathSmtpClientOptions.cs
More file actions
21 lines (20 loc) · 915 Bytes
/
SmtpClientOptions.cs
File metadata and controls
21 lines (20 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using MailKit.Security;
using System.Net.Security;
namespace FluentEmail.MailKitSmtp
{
public class SmtpClientOptions
{
public string Server { get; set; } = string.Empty;
public int Port { get; set; } = 25;
public string User { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public bool UseSsl { get; set; } = false;
public bool RequiresAuthentication { get; set; } = false;
public string PreferredEncoding { get; set; } = string.Empty;
public bool UsePickupDirectory { get; set; } = false;
public string MailPickupDirectory { get; set; } = string.Empty;
public SecureSocketOptions? SocketOptions { get; set; }
public bool CheckCertificateRevocation { get; set; } = true;
public RemoteCertificateValidationCallback ServerCertificateValidationCallback { get; set; }
}
}