Sending Test eMail via Telnet

There many cases where you need to send a test email from a given host or server but would not have a mail client to perform this task. The following is the sequence of commands required to send email via Telnet:

 $ telnet mail.server.com 25 ENTER
HELO server.com ENTER
MAIL FROM:<to_username@live.com> ENTER
RCPT TO:<replyto_username@live.com> ENTER
DATA ENTER
from:to_username@live.com ENTER
to: replyto_username@live.com ENTER
Subject: Test email ENTER
This is a test email ENTER
. ENTER
QUIT ENTER
 Please use the Return key for every ENTER displayed above.