Infralin's (not so) Frequently Asked Questions on Email in general
© Gijsbert van der Linden ()
Infralin Consultancy (http://www.infralin.com)
Last updated: 5-4-2005
How to send a message using Telnet?
Bold is what you type
Italic is optional
Indented is what is returned
Between [ and ] should/will be replaced with the appropriate content
Telnet [servername/IP address] 25
220 [hostname] [service name]
ready at [date/time]
ehlo [yourdomainname]
250-[servername] Hello [IP address]
250-[options supported]
250 OK
mail from: <[envelop from address]>
250 2.1.0 [envelop from address]....Sender OK
rcpt to: <[envelop to address]>
250 2.1.5 [envelop to address]
data
354 Start mail input; end with <CRLF>.<CRLF>
From: [header from address]
To: [header to addresses]
Subject: [subject]
[text]
.
250 2.6.0 <[message id]> Queued mail for delivery
quit
221 2.0.0 [servername] Service closing transmission channel
Connection to host lost.