To Test a mail server from the command line:
First you need to telnet to port 25 like this:
telnet ip address 25
Subject:This is a test subject line
This is a test, please do not respond
You will need to type this in exactly as above or the mail server will kick you out.