SmtpException: Server does not support secure connections
asp.net, smtp
Solution
you might want to set `EnableSsl` to `false` or
<add key="EnableSsl" value="false"/>
if your setting is on `Web.config` or `App.config`.
Problem
In my website whenever a user logs in admin will receive a mail with login details. From past many years i was using smtp.gmail.com for sending mails, now i wished to change it. So i was trying to send mail using new smtp credentials given by my new mail client. Now when i use there details to send a mail i get and exception saying System.Net.Mail.SmtpException: Server does not support secure connections. I have contacted the support team for help to check my credentials but they have tested my credentials and replied everything is fine. Below is my code which i am using to set smtp details. ``` <smtp from="info@store36.com"> <network host="smtp.falconide.com" password="" port="587" userName=""/> </smtp> ``` I have tried both 25 and 587 ports, my EnableSsl is set to true. Please help me.