How do I issue multiple commands using telnet or netcat?

I want to send a Email from my command prompt using telnet.?

  • What i did is telnet the gmail server but i am unable to connect.all i did is telnet the smtp server of gmail on port 25 then on port 110 and finally on 465 but non of them work.....please help me.n I am Using windowsXP professional.

  • Answer:

    1 Open the cmd prompt. (Start -> Run or press win key + R, then type cmd and presss OK ) 2 Type telnet server.com 25 (where "server.com" is the name of the smtp (outgoing) server of your email provider, such as smtp-server.austin.rr.com). This can be found by checking your account info in the program you normally use for email. 3 Type HELO server.com. (Or "HELO server.com") 4 Type MAIL FROM:[email protected]. 5 You may get a message saying "250 ok" 6 Type RCPT TO:[email protected], [email protected], [email protected], etc. 7 again, You may get a message saying "250 ok" 8 To write the message, type DATA and press Enter. 1. On the first line type SUBJECT:yoursubject and press Enter twice. 2. Continue typing your message. 3. Put a single period (.) on a line by itself and press Enter to send your message. The server should say 'Message accepted for delivery'. (Or it says 250 OK id=`a long id`) 9 Type QUIT to exit Telnet.

Anuj at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.