Sending email w/telnet on SMTP server

Log into the smtp server on port 25 with telnet.
You may type "HELP" for more information once connected.
	helo rcptisp.com
	mail from: you@isp.com
	rcpt to: target@isp.com
	data
	subject: This is the subject line
	This is the body of the email.
	You may type as much as you like but don't
	forget to type a "." on a line by itself
	when you are finished
	.

Verifying a Receipient exists for email

     Note: This feature does not work on all sendmail applications. Most Linux and Solaris versions of Unix do support this command. This command can also be used to expand the true mailbox of an alias. If it does not work on your mail server, try another machine's port 25 sendmail.

Log into the SMTP server (of receipient) on port 25 with telnet.
expn [userid]
	[userid@isp.com]                = valid
	or
	userid... User unknown          = invalid

Possible Headers w/SMTP

     All headers beginning with "X-" are non-standard. This means that you can add any header you want but it must begin with "X-". Take for instance the header "X-This-is-a-secret": If you made an email application that looks for this header, it would recognize the header but no other email client would, it will simply ignore it. You should conclude that all the headers that do not begin with "X-" are standard headers and may be required. All headers are inserted after the "data" command.

Return-Path: <sender@isp.com> Delivered-To: rcpt@isp.net Received: from mail.integrityol.com ([206.191.137.7]) by mtapop3.gte.net (InterMail v4.01.01.00 201-229-111) with ESMTP id <19991214020948.KXK2758560.mtapop3@mail.integrityol.com> for <tomjo@gte.net>; Mon, 13 Dec 1999 20:09:48 -0600 Received: from oemcomputer [206.191.137.138] by mail.integrityol.com (SMTPD32-5.05) id A60835201AE; Mon, 13 Dec 1999 18:06:00 -0800 Message-Id: <3.0.3.32.19991213175639.00689528@mail.integrityol.com> X-Sender: user@mail.isp.com X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 From: "John H. Doe" &lt;johndoe@msn.com> To: <rcpt@isp.com> Subject: This is an SMTP Test. Date: Mon, 13 Dec 1999 17:56:39 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C09C98.A3A5FBA0" ------=_NextPart_000_0007_01C09C98.A3A5FBA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, this is an email test via telnet. No email client necessary. ------=_NextPart_000_0007_01C09C98.A3A5FBA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>EMAIL</TITLE> </HEAD> <BODY> Hello, this is an email test via telnet. No email client necessary. </BODY> </HTML> ------=_NextPart_000_0007_01C09C98.A3A5FBA0--
SMTP Help
Topics:
     HELO    EHLO    MAIL    RCPT    DATA
     RSET    NOOP    QUIT    HELP    VRFY
     EXPN    VERB    ETRN    DSN
For more info use "HELP ".

HELO 
    Introduce yourself.
RSET
    Resets the system.
EXPN 
    Expand an address.  If the address indicates a mailing
    list, return the contents of that list.
EHLO 
   Introduce yourself, and request extended SMTP mode.
   Possible replies include:
	    SEND            Send as mail                    [RFC821]
	    SOML            Send as mail or terminal        [RFC821]
	    SAML            Send as mail and terminal       [RFC821]
	    EXPN            Expand the mailing list         [RFC821]
	    HELP            Supply helpful information      [RFC821]
	    TURN            Turn the operation around       [RFC821]
	    8BITMIME        Use 8-bit data                  [RFC1652]
	    SIZE            Message size declaration        [RFC1870]
	    VERB            Verbose                         [Allman]
	    ONEX            One message transaction only    [Allman]
	    CHUNKING        Chunking                        [RFC1830]
	    BINARYMIME      Binary MIME                     [RFC1830]
	    PIPELINING      Command Pipelining              [RFC1854]
	    DSN             Delivery Status Notification    [RFC1891]
	    ETRN            Remote Message Queue Starting   [RFC1985]
	    XUSR            Initial (user) submission       [Allman]214-EHLO 
NOOP
    Do nothing.
VERB
    Go into verbose mode.  This sends 0xy responses that are
    not RFC821 standard (but should be)  They are recognized
    by humans and other sendmail implementations.
MAIL FROM:  [  ]
    Specifies the sender.  Parameters are ESMTP extensions.
    See "HELP DSN" for details.
QUIT
    Exit sendmail (SMTP).
ETRN [  | @ | # ]
    Run the queue for the specified , or
    all hosts within a given , or a specially-named
     (implementation-specific).
RCPT TO:  [  ]
    Specifies the recipient.  Can be used any number of times.
    Parameters are ESMTP extensions.  See "HELP DSN" for details.
HELP [  ]
    The HELP command gives help info.
DSN
	MAIL FROM:  [ RET={ FULL | HDRS} ] [ ENVID= ]
	RCPT TO:  [ NOTIFY={NEVER,SUCCESS,FAILURE,DELAY} ]
	                     [ ORCPT= ]
	    SMTP Delivery Status Notifications.
	Descriptions:
	    RET     Return either the full message or only headers.
	    ENVID   Sender's "envelope identifier" for tracking.
	    NOTIFY  When to send a DSN. Multiple options are OK, comma-
	            delimited. NEVER must appear by itself.
	    ORCPT   Original recipient.
DATA
    Following text is collected as the message.
    End with a single dot.
VRFY 
    Verify an address.  If you want to see what it aliases
    to, use EXPN instead.