title: Testing SMTP server is running via C#
body: <p>How can I test SMTP is up and running via C# without sending a message. </p>
  
  <p>I could of course try:</p>
  
  <pre><code>try{
  // send email to "nonsense@example.com"
  }
  catch
  {
  // log "smtp is down"
  }
  </code></pre>
  
  <p>There must be a more tidy way to do this. </p>