Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Server does not support secure connections
I used smtp.EnableSsl = true and also smtp.EnableSsl = false still i getting the error



Pls help.........
Posted
Comments
Irbaz Haider Hashmi 12-Feb-13 4:12am    
what error?

1 solution

try below code

C#
SmtpClient SmtpServer = new SmtpClient();
SmtpServer.Credentials = new System.Net.NetworkCredential(user, password);
SmtpServer.Port = 25;
SmtpServer.Host = "smtp.rediffmail.com";
SmtpServer.EnableSsl = false; 
//SmtpServer.EnableSsl = true  when smpt host is gmail.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900