Here is my web.config file:
<system.net>
<mailSettings>
<smtp from="xxx@gmail.com" >
<network host="smtp.gmail.com" port="587" userName="xxx@gmail.com" password="yyy" />
</smtp>
</mailSettings>
</system.net>
I need to enable TLS, a requirement of my email server. However I only see SSL.
Its actually equivalent – TLS is kinda of broader than SSL. So use
enableSsl= "true"for enabling TLS. As per MSDN documentation, that will force SMTPClient to use RFC 3207(and RFC uses both terms TLS/SSL).