One way to test the functionality of SMTP is to test it the old school method. Nate Waddoups at the MSExchange team blogs tells us how:
read full at source: http://msexchangeteam.com/archive/2006/07/14/428324.aspx
If you are writing an SMTP agent, you might find it instructive to learn to speak SMTP yourself, both to aid debugging and to get a feel for what is happening "under the hood" when Exchange receives a message from the internet. This is a lot easier than it might sound. Open the Run dialog box (press Window + R) and enter "telnet localhost smtp" (or substitute the name of your Gateway server in place of localhost). This will open a window where you can talk with the server. The server will begin the conversation by sending a banner, such as:
220 mail.contoso.com ready at Thu, 23 Feb 2006 17:46:23 -0800
You may continue the conversation by entering the following commands, one line at a time. Note that there is a blank line in the middle - it's important. Just press enter to send the blank line:
ehlo console
mail from: sender@contoso.com
rcpt to: recipient@contoso.com
data
To: recipient@contoso.com
From: sender@contoso.com
Subject: Test Message
This a test message.
.
quit
- Joel
Another way to test the functionality of SMTP is to use the SMTPDiag tool. This tool will send test mail to see if there is a configuration problem with your Exchange server.
Get SMTP Diag here:
http://www.microsoft.com/downloads/details.aspx?familyid=bc1881c7-925d-4a29-bd42-71e8563c80a9&displaylang=en