Click here to Skip to main content
15,358,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. r3sm3412459ibk.1


this error is coming when send a email
Posted
Comments
Henry Minute 3-Oct-10 6:09am
   
When you send email from where. Your own program, a commercial Email programme or where? How can you expect people to help you if you do not give them complete information?

1 solution

Try to enable ssl before sending the message, something like this:

C#
SmtpClient smtpClient= new SmtpClient();
try
{
  smtpClient.EnableSsl = true;
  smtpClient.Send(message);
}
catch (Exception e)
{
  MessageBox.Show(e.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
}


Good luck!
   
Comments
VinodKumar01 4-Oct-10 0:39am
   
where is MessageBox class
E.F. Nijboer 4-Oct-10 3:52am
   
System.Windows.Forms

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