title: Sending Email through .NET code
body: <p>I'm unable to send an email to yahoo server as my code is throwing exception as 'Failure Sending mail' in C# 2008.
  Please provide SMTP HostName, PortName for yahoo server and gmail server.</p>
  
  <p>And also kindly provide a good working C# code with which i can send an email directly to any of the mail servers.</p>
  
  <p>Please provide complete working code...so that i will copy into Visual studio environment and execute the same.
  As i'm getting exception since morning....unable to resolve the issue.
  Kindly help me in this regard.</p>