Click here to Skip to main content
15,938,682 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting this exception while sending mail can anybody help me.

"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" Learn more at
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)"
Posted

You have attempted to send an smtp email through an smtp server that requires authentication.

Either adjust your smtp server settings so that anonymous email sending is allowed (NOT A GOOD IDEA), swap to a public smtp server, or provide a user and password that does have rights to send via your SMTP server.
 
Share this answer
 
Read this link carefuly

Send Email with Authentication using ASP.NET and C#.NET[^]

Regards.. :laugh:
 
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