title: how to resolve smtp error : sending message?
body: <p>Below is my code using smtp for sending mail.</p>
  <pre><code>MailMessage mm = new MailMessage(&quot;user@gmail.com&quot;, &quot;user@gmail.com&quot;);
  mm.Subject = &quot;test&quot;;
  mm.Body = &quot;hi&quot;;
  SmtpClient smtp = new SmtpClient(&quot;smtp.gmail.com&quot;,587);
  smtp.Credentials = new NetworkCredential { UserName = &quot;user@gmail.com&quot;, Password = &quot;&quot; };
  smtp.EnableSsl = true;
  smtp.Send(mm);
  </code></pre>
  <p>when  am trying to execute this code i got the below error,
  <a href="https://i.stack.imgur.com/0JCnL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0JCnL.png" alt="smtp error" /></a></p>
  <p>please help me to resolve this error..</p>
  <p>Thanks in Advance,</p>