SMTP Example

Make sure your telnet client is set to local echo, CRLF to end lines. [arnold@localhost 01]$ telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail 8.11.6/8.11.6; Mon, 6 Jan 2003 01:46:09 -0500 HELO localhost 250 localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you MAIL FROM: <sid@something.com> 250 2.1.0 <sid@something.com>... Sender ok RCPT TO:<arnold> 250 2.1.5 <arnold>... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Subject: This is the subject This is a bogus message!! Here is another line!! . 250 2.0.0 h066kmZ08834 Message accepted for delivery QUIT