title: Client Host Rejected, Access denied error while sending smtp mails
body: <p>I am trying to send mail outside my network and this is the error I am getting, and I know this is an error of relaying.
  I need to know a proper solution so that sending mail can be possible.
  I am trying this code:</p>
  
  <pre><code>SmtpClient client = new SmtpClient();
  client.Host = smtp....com;
  client.Port = 25;
  client.EnableSsl = true;
  client.Credentials = new System.Net.NetworkCredential(sEmailID, sPassword);
  client.DeliveryMethod = SmtpDeliveryMethod.Network;
  client.Send(message);
  </code></pre>