Enable / Not for SSL port

Hi,

I understand that when SSL is enable, SecurityOptions should be either Auto / Implicit.
But when not SSL, what would the code combination be ?
Is this correct ?

if (EnableSSL)
{
if (EnableStartTLS)
mSmtpClient.SecurityOptions = SecurityOptions.SSLExplicit;
else
mSmtpClient.SecurityOptions = SecurityOptions.SSLImplicit;
}
else
{
mSmtpClient.SecurityOptions = SecurityOptions.None;
}

Hi,


Thank you for writing to Aspose Support team.

In such case, you can specify the SecurityOptions.None to specify a non-secure link as can be seen from the description of the SecurityOptions enumerator. Please let us know if we can be of any additional help to you.

Hi,

What about the SSL / TLS option?
Does my code work according to Aspose.Email concept ?


Hi,


Yes, the code for setting SSL and TLS are correct. For SSL Enabled server, the API provides SSLImplicit, while for TLS, it is SSLExplicit.