mirror of
https://dev.azure.com/tstanciu94/Services/_git/Correo
synced 2025-03-29 15:21:26 +02:00
SmtpClient config: UseSsl => EnableSsl
This commit is contained in:
parent
c3b0fb60df
commit
dc5ce5e96a
@ -4,7 +4,7 @@
|
||||
{
|
||||
public string Server { get; init; }
|
||||
public int Port { get; init; }
|
||||
public bool UseSsl { get; init; }
|
||||
public bool EnableSsl { get; init; }
|
||||
public bool UseAuthentication { get; init; }
|
||||
public bool TrustServer { get; init; }
|
||||
public AuthenticationOptions Authentication { get; init; }
|
||||
|
@ -23,7 +23,7 @@ namespace Correo.SmtpClient
|
||||
|
||||
var options = _optionsAccessor.Value;
|
||||
|
||||
_smtpClient = new System.Net.Mail.SmtpClient { Host = options.Server, Port = options.Port, EnableSsl = options.UseSsl };
|
||||
_smtpClient = new System.Net.Mail.SmtpClient { Host = options.Server, Port = options.Port, EnableSsl = options.EnableSsl };
|
||||
if (options.UseAuthentication)
|
||||
{
|
||||
if (string.IsNullOrEmpty(options.Authentication.Domain))
|
||||
|
@ -38,7 +38,7 @@
|
||||
"Password": "********"
|
||||
},
|
||||
"UseAuthentication": true,
|
||||
"UseSsl": true,
|
||||
"EnableSsl": true,
|
||||
"TrustServer": false
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user