|
|
|
|
![]() ![]() |
Mar 17 2006, 09:59 PM
Post
#1
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 96 Joined: 7-July 05 Member No.: 9,135 |
ok first off im no good at writing tutorials so feel free to flame me (hey that rymes). Anyway in this tutorial i will basically show you how to send and receive email via the command-line terminal emulation program called Telnet. Now where shall i start, hmm.. Sending Email!!
Sending Email Sending email requires a special type of server called an SMTP server (SMTP -> Simple Mail Transfer Protocol). SMTP is the protocol used to send email just like POP is the protocol used to receive. Now by default and most commonly SMTP servers run on port 25. To describe a port i will have to basically describe a connection. Think of a server as a block of flats/apartments and each flat/apartment (with its own individual number) is a port, so a port is just a way into another system. Anyway back to SMTP servers, so to send email you need an smtp server, your email provider should have one (smtp server list at end of tutorial). Anyway once you have your smtp server open up msdos (cmd) by going to Start > Run and typing in cmd and pressing enter. Then open up telnet and type "o smtpserver.host.domain smtpserverport". 'o' -> Open 'smtpserver.host.domain' -> Connection to Server 'smtpserverport' -> On This Port Anyway once your into the server you should be greeted by whats called a banner, a banner is just a message displayed to a user once he/she connects. The banner should look like this: QUOTE 220 SERVERHERE mail server just type "helo SERVERHERE" to let the server know your there and ready to start commanding it. next you need to establish where the email message is coming from so type: QUOTE mail from: youremail@youremailprovider.com next you need to establish where the email message is going to so type: QUOTE rcpt to: receiver@theiremailprovider.com im not sure about the subject GOOGLE IT!! anyway now your ready to start typing your message. type "data" press enter. Enter your message and enter '.' on a line by itself press enter to finish the message, the server should then send the message, next just type quit to leave the smtp server and your done!! [SMTP Servers] i will now list some common email providers smtp servers. Gmail SMTP Server: smtp.gmail.com Hotmail: mx1.hotmail.com Yahoo: mx1.mail.yahoo.com Other: contact your email provider for your smtp server. Receiving Email! Right now that thats out of the way time to move on to receiving email. Now just like sending email, receiving email also needs a special type of server, its called a POP server, POP = Post Office Protocol, the protocol created for the purpose of receiving email. When you send email your sending it to the receipitents POP server. The default port for POP servers is 110. Open up a command prompt like you did before and type: QUOTE telnet "POPSERVER" 110 next you need to login to the POP server, have your username and password ready. type USER followed your username, press return then type PASS followed by your password then press return and if everything is ok you should be logged in. Next to see if you have any messages type LIST which will return your messages, you wont see the subjects but instead the size in bytes of the email, bit confusing i know. You will also see the id number of the email e.g. QUOTE 1) 1843 2) 7892 3) 9989 3 is obviously the largest email, to read the email you simply type: QUOTE RETR id and finally to delete an email you type: QUOTE DELE id well thats it for this tutorial hope you found it useful. |
|
|
|
Mar 18 2006, 07:41 AM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 426 Joined: 24-September 05 Member No.: 12,212 |
telnet isnt the safest protocol to use nowadays..
|
|
|
|
Mar 19 2006, 07:58 AM
Post
#3
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,205 Joined: 25-March 05 Member No.: 4,883 |
telnet isnt the safest protocol to use nowadays.. Agreed. Besides, most email providers has blocked access to foreign protocols, especially from using telnet, to prevent spam. Telnet was a common tool that spammers used in the pass to send multiple spam messages using the email server's smtp servers. Now many access to these SMTP servers are already blocked. Otherwise, you will need an account to that email server, and a new guide will be needed to do in another way. Nice findout. I've tried that some years back. Now it doesn't work on hotmail and yahoo anymore. |
|
|
|
Mar 19 2006, 11:30 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 283 Joined: 17-December 04 Member No.: 2,764 |
I think nowasdays ISP are very very strict as far as email is concerned. My ISP even blocked access of their POP and SMTP servers outside the IPs that they give out! Port 25 is blocked by default and mail relay is impossible with my ISP. Probably, there are really too much SPAM out there, but I suspect that they want to charge more by blocking some of the service.
|
|
|
|
Apr 28 2006, 12:20 PM
Post
#5
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 28-April 06 Member No.: 22,693 |
Now it doesn't work on hotmail and yahoo anymore. I tried with yahoo 5minutes ago and it still works |
|
|
|
May 9 2006, 12:19 PM
Post
#6
|
|
|
The Ethical Hacker ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,112 Joined: 27-May 05 From: Portugal (Europe) Member No.: 7,566 |
That's a good tutorial for telnet users, thanks.
But now people use personal smtp servers, like for example, there's a very good one named: "free smtp server". With free smtp server you can send your own messages without passing them thrue servers, you send the email right to the receivers email inbox, like this you don't take the risk of people getting important emails with sensible data. Just install free smtp server, then run it, now open your email client (i use advanced emailer, but there's more, for instance, outlook express, pegasus, etc...) and configure the smtp server (as the name of the smtp server you just have to type: localhost and port 25) and now you can start sending emails without external smtp servers from free or pay email servers on the internet. This post has been edited by Lyon2: May 9 2006, 12:21 PM |
|
|
|
Feb 6 2008, 12:43 PM
Post
#7
|
|
|
Guest Feedbacks ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,360 Joined: 21-September 07 Member No.: 50,369 |
how i cleare the error
Sending + Receiving Email Via Telnet Sir, I want to send a mail to smtp server form my program in php.So first I will try to connect to the smtp server using fsockopen() function in php. But the smtp server can not connected.That will say the error report: "[Wed Feb 06 17:37:38 2008] [error] [client 0.0.0.0] PHP Warning: fsockopen() [<a href='function.Fsockopen'>function.Fsockopen</a>]: unable to connect to 192.168.0.250:25 (An established connection was aborted by the software in your host machine.\are\and) in see:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\hotpak\\src\\util\\file.Php on line 35".What I do please help me to currect error. By Hariprasath Chennai -reply by hariprasath |
|
|
|
Apr 17 2008, 03:53 AM
Post
#8
|
|
|
Guest Feedbacks ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,360 Joined: 21-September 07 Member No.: 50,369 |
post a hyperlink ?
Sending + Receiving Email Via Telnet Hi I am able to telnet SMTP server and send emails.I am just wondering if I can post a hyperlink on the data section of the email.I did try but in vain.. Kindly help me.Thanks -reply by Arun |
|
|
|
Apr 28 2008, 05:30 AM
Post
#9
|
|
|
Guest Feedbacks ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,360 Joined: 21-September 07 Member No.: 50,369 |
receiving email code using php Send |