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.
you might want to set EnableSsl
to false
or
<add key="EnableSsl" value="false"/>
if your setting is on Web.config
or App.config
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With