This is related to a question I asked the other day on how to send email.
My new, related question is this... what if the user of my application is behind a firew
I also had this need.
Here's the library I made (it send a HELO and checks for a 200, 220 or 250):
HELO
using SMTPConnectionTest; if (SMTPConnection.Ok("myhost", 25)) { // Ready to go } if (SMTPConnectionTester.Ok()) // Reads settings from in .config { // Ready to go }