PDA

View Full Version : Sending an E-mail using Telnet


Banki
02-23-2009, 02:17 AM
Sending an E-mail using Telnet



Firstoff in order to understand this tutorial you need to know what telnet is:

Telnet is a terminal emulation program for TCP/IP networks such as the Internet. The Telnet program runs on your computer and connects your PC to a server on the network. You can then enter commands through the Telnet program and they will be executed as if you were entering them directly on the server console. This enables you to control the server and communicate with other servers on the network. To start a Telnet session, you must log in to a server by entering a valid username and password. Telnet is a common way to remotely control Web servers. Telnet can be used for both good and evil purposes.


Many people wonder on how to send emails using telnet, well it is very is easy. All you need to know is a few commands and how to use telnet.



First go to “Start” on your computer, and then click “Run”. In the text box type “Telnet”, or type “CMD” and in the command prompt type ”Telnet”. This will open the telnet program we are going to use. After we have telnet up and going we must first connect to a mail server, which usually has to be the same domain as the e-mail account you are trying to send to. (hotmail, Yahoo, etc.) In this article I am going to use hotmails email server.

To find other mail server names go to http://centralops.net/co/DomainDossier.aspx and in the input field type the email domain your going to use, such as hotmail, Yahoo, etc.


The e-mail server that was found in hotmails server was mx1.hotmail.com, mx2.hotmail.com, and mx4.hotmail.com.
We will use mx1.hotmail.com in this article. In order to connect to the e-mail server:

Type the following statement in the telnet prompt without quotes:



"o mx1.hotmail.com 25" The “o” is not the number zero it is the letter “o”



The “o” means open it opens up a connection. After the open command, you type in the address, then finally you type the port you wish to connect to. Use port 25 because most of the time that port number is the mail port.

This is the code: o (address here) (port #)

again, port 25 is usually the mail port.

After the statement o mx1.hotmail.com 25 is typed press ENTER.

You should see a screen pop up with the following statement:

220 mc6-f10.hotmail.com sending unsolicited commercial or bulk e-mail to Microsoft's

computer network is prohibited…

If that happens, you've succeeded if not check your statement...

Then type in HELO (That is not a spelling error) after that press ENTER

It should respond with:
"250 mc6-f10.hotmail.com (your IP address) Sender OK"

Then type:

MAIL FROM: (Your Alias 'or Real' E-mail address here) without parentases

Press ENTER

After that typeRCPT TO: (Target E-mail here) without the parentases

note: You can put down multiple RCPT TO: and it will send to all those people, just make sure you seperate them by putting a ; after each email address you put.

Then type DATA, From here, you cannot make a mistake because backspace doesn't work in mailing prompts.


Then after that type without quotes or parentheses and enter the following:

To: (Target address here in full)

From: (Your Alias 'or Real' E-mail)

Then finally type your message and after you are done typing your message press “Enter” and the mail server will deliver it to who ever you are sending it to.

Cheers,