Telnet and CMD not recognizing commands

I've been trying to use telnet to send emails, but commands like MAIL TO are described as unrecognized. Any solutions?
Jamie KingStudentAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
It is increasingly difficult to use Telnet to check anything except the simplest SMTP connections, because most sites use extensions, firewalls, context filtering and IP-based filtering to restrict spam.  SMTP connections must therefore be exact and precise, be quick with timing and responses, and conform to what the receiving MTA considers valid.

An example of the last can be found at Microsoft's web site regarding SMTP to Exchange MTAs.  The exchange is close to, but not quite "usual" SMTP, particularly as regards AUTH LOGIN and the encrypted usernames.

If you can show us a session log, it will be helpful.

As per Dr Klahn, please can you post a copy of the interaction.

I am assuming you are successfully submitting a HELO / EHLO, and getting a valid response?


Moreover, MAIL TO is correctly not recognized - use MAIL FROM and RCPT TO and  look for SMTP verbs in the pages linked above.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
This is one of my "go to" forums when trying to do testing with Telnet (mostly for exchange server)

telnet 25
220 Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Sun, 15
Sep 2002 23:51:06 +0200
250 Hello []
mail from:
250 2.1.0 OK
rcpt to:
250 2.1.5
354 Start mail input; end with .
subject: this is a test
Hi Daniel
I'm trying to test this connection from Telnet.
Let me know if you get this message.
250 2.6.0  Queued mail for delivery
221 2.0.0 Service closing transmission channel
Connection to host lost.
Press any key to continue...

Open in new window

The point in here is that "mail to" doesn't exist it would be "rcpt to" and "mail from"
Michaelangelo identified the issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.