-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
nextfool/nopCommerce
#1Description
nopCommerce version: 4.40.2
Steps to reproduce the problem:
try
{
await client.ConnectAsync(
emailAccount.Host,
emailAccount.Port,
emailAccount.EnableSsl ? SecureSocketOptions.SslOnConnect : SecureSocketOptions.**StartTlsWhenAvailable**);
if (emailAccount.UseDefaultCredentials)
{
await client.AuthenticateAsync(CredentialCache.DefaultNetworkCredentials);
}
else if (!string.IsNullOrWhiteSpace(emailAccount.Username))
{
await client.AuthenticateAsync(new NetworkCredential(emailAccount.Username, emailAccount.Password));
}
return client;
}
So in the email account settings if we left "Enable SSL" unchecked, as you can see it still fallback to TLS connection?
Isn't it suppose to be SecureSocketOptions.None here if we don't want any authentication here?