Click here to Skip to main content
15,888,288 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
smtp server requires a secure connection or the client was not authenticated 5.5.1 in sending sms using vs 2008
Posted
Comments
[no name] 14-Jul-13 6:39am    
Your error message means exactly what it says.

1 solution

Are you supplying correct credentials and do you have the EnableSsl property set to true (if you are indeed using SSL)?

C#
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("my user", "my pass");
 
Share this answer
 

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