How to test send smtp email directly using telnet and SMTP commands.


telnet <server domain> 25

Connected to <server domain> (w.x.y.z).
Escape character is '^]'.
220 <server domain> (PowerMTA(TM) v4.0) ESMTP service ready

EHLO
250-<server domain> says hello
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250-8BITMIME
250-XACK
250-XMRG
250-SIZE 54525952
250-VERP
250 DSN


MAIL FROM: <test@<server domain>>
250 2.1.0 MAIL ok

RCPT TO: <jdoe@test.com>
250 2.1.5 <jdoe@test.com> ok

DATA
354 send message

From: "Test" <test@<server domain>>
To: "Jane Doe" <jdoe@test.com>
Subject: test message sent from manual telnet session
Date: Wed, 11 May 2011 16:19:57 -0400

Hello World,
This is a test message sent from a manual telnet session.

.
250 2.6.0 message received

QUIT
221 2.0.0 mail.port25.com says goodbye