Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SmtpException: Server does not support secure connections

Tags:

asp.net

smtp

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="[email protected]">
<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.

like image 782
Rajput Pavan Avatar asked Aug 16 '13 09:08

Rajput Pavan


1 Answers

you might want to set EnableSsl to false or

<add key="EnableSsl" value="false"/>

if your setting is on Web.config or App.config.

like image 181
Kun Avatar answered Sep 22 '22 17:09

Kun