Click here to Skip to main content
14,424,458 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to remove the error and add the authentication tag code in page

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

 smcl.Credentials = new System.Net.NetworkCredential(ea@gmail.com;Password;);
Line 50:         smcl.EnableSsl = true;
Line 51:         smcl.Send(mm);
Line 52:         Response.Write("<script>alert('Your account has been sucessecfully created please check your Email Id to verify Your Account')</script>");
Line 53:
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Since you have created your network credentials and passed them through with the call to the SMTP server, I would assume that the credentials themselves are not valid.

Just in case you have missed something in your code, you can check this[^] tutorial and compare your code to it.

If you haven't got a good answer, please add a code snippet to your question using the Improve Question widget so that we can see the relevant mail message creation and send.

Cheers.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100