Old School: Send E-Mail with Telnet
With all of the fancy e-mail programs out there, it is really easy to forget that e-mail had some pretty humble beginning with a simple text interface. And, it is still possible to send e-mail this way.
Now, I’m not really certain as to why you would want to send e-mail this way other than you have no choice or you just want to do it (GEEK!) but here is the process, step by step.
For this tutorial, we will use an example. In this example, our mail server is called smtp.maildomain.com. My e-mail address is me@maildomain.com and I am sending an e-mail to my friend at geekreader@maildomain.com. I want to send him an e-mail with a subject of Telnet Mail and the message will be I am sending this e-mail with telnet. Whenever you see these in the code portion of this tutorial, please replace it with your appropriate information.
Action |
Command |
Response |
| Connect to your mail server | telnet smtp.maildomain.com 25 |
220 220 smtp.maildomain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Mon, 30 Jul 2007 13:45:15 -0500 |
| Introduce yourself | helo |
250 smtp.maildomain.com Hello [192.168.1.2] |
| Indicate who mail is from | MAIL FROM: me@maildomain.com |
250 2.1.0 me@maildomain.com…Sender OK |
| Indicate recipient of mail | RCPT TO: geekreader@maildomain.com |
250 2.1.5 geekreader@maildomain.com |
| Start message | DATA |
354 Start mail input; end with <CRLF>.<CRLF> |
| Add subject (press Enter twice to complete this command) | Subject: Telnet Mail |
|
| Enter your message | I am sending this e-mail with telnet. |
|
| Indicate that your are done | . |
250 2.6.0 <HJSDRC249CIGo7F5aOYf00000002@smtp.maildomain.com> Queued mail for delivery |
| Finish your session | QUIT |
221 2.0.0 smtp.maildomain.com Service closing transmission channel |
The entire conversation should look something like this:
220 smtp.maildomain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Mon, 30 Jul 2007 15:10:31 -0500helo250 smtp.maildomain.com Hello [192.168.1.2]MAIL FROM: me@maildomain.com250 2.1.0 me@maildomain.com....Sender OKRCPT TO: geekreader@maildomain.com250 2.1.5 geekreader@maildomain.comDATA354 Start mail input; end with Subject:Telnet MailI am sending this e-mail with telnet..250 2.6.0 QUIT221 2.0.0 smtp.maildomain.com Service closing transmission channel |
Now, these are just the absolute basics for sending an e-mail. There are a lot of different options but this will at least get an e-mail out the door!
Now, if you are looking for some more fun with telnet, open up a telnet session to towel.blinkenlights.nl and see what Star Wars looks like in ASCII text! (Yes, I know this has been around forever but I’ll bet that there is at least one reader who has not seen it!)
If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?
5 Responses to “Old School: Send E-Mail with Telnet”
-
Jatecblog :: Linux, Open Source, Web Design, and more Technology Says:
November 30th, 1999 at 12:00 am- FOSSwire Misc. Technology Apple computers lose the “Energy Star” certification - TrendPlex OSX Leopard is 100% UNIX - the Mac Observer Compenion - Visionary Personal Computer - ComputerWorld. Review Old School: Send E-Mail with Telnet - Daily Cup of Tech What if your computer desktop were a real desktop - Download Squad Open Source & Firefox Firefox Portable Edition 2.0.0.6 Released - Brown Thoughts How to backup and restore your Firefox Passwords?
-
Jake Says:
July 31st, 2007 at 10:21 amThis is pretty cool. I tried it with my ISP mail and it worked fine. I can’t believe I was never asked for a password though… Luckily my ISP doesn’t use a Microsoft SMTP server.
-
Tim Fehlman Says:
July 31st, 2007 at 10:34 amMany SMTP servers do not require authentication. This is why so many are used by spammers!
Tim
-
Eduardo Says:
August 1st, 2007 at 6:33 amWell, indeed this command sentences are widely used by call centers to try both incoming/outgoing mail connections. In my case, few times a day

Let me suggest playing with:
“telnet mail.server.com 110″
“user username”
“pass password”
“rtrv 1″
and so on… -
Mr Probe Says:
June 8th, 2009 at 12:13 pmActualy dudes and dudesse’s
You dont need any authentification on SMTP servers s if you do half the servers in the world wide web WON’T be able to send mail to you. Hmmmm… So we stop SPAMMERS by doing 2 things.
1. We forbit any “Unauthenticated Users” from relaying mail.550 denied …
2. We do not accept any messages that are not actual mail box’s in the pop3 server..
IMPORTANT NOTE: SMTP deals with ALL inbound and outbound mail. The pop server is just a tool to sort the RECEIVED mail into box’x just like the sorting office (post room) in your business.
Knowledge is FREE
Probe you lator

