I assume that all of you don’t know where to find telnet. If you use windows, you can find telnet from cmd : start -> menu -> run -> cmd. If you use unix base operating system, you can run telnet from your console.
Now from your command prompt type “telnet” (whitout double quote). Type help to see list of action that you can perform. I won’t discuss about all of the option except o (open connection to remote host). From now on you must know the hostname you want to connect with and which port you wanna use.
Here is some important port that i usually used :
port : used for
21 : ftp
23 : telnet
25 : smtp
80 : http
110 : pop
If you want to connect with smtp server, from telnet prompt simply type :
o smtp.remoteserver.com 25 (change remoteserver.com to the hostname you want to connect, e.g smtp.telkom.net)
o smtp.remoteserver.com 25 (change remoteserver.com to the hostname you want to connect, e.g smtp.telkom.net)
Then if the connection successfully established, start to type smtp command.
Note : S (server’s respond), C (client == you/your command).
C : MAIL FROM:youraccount@youremail.com
S : 250 OK
C : RCPT TO:yourtarget@her/his_email.com
S : 250 OK
C : DATA
S : 354 Enter message, ending with “.” on a line by itself
C : From : youraccount@youremail.com
C : To : yourtarget@her/his_email.com
C : Subject : Hello There!!
C : your message begin here. to end the message type “.” (without double quote) on a new line
S : 250 OK
C : QUIT
S : 221 c.smtp.telkom.net closing connection
Note : S (server’s respond), C (client == you/your command).
C : MAIL FROM:youraccount@youremail.com
S : 250 OK
C : RCPT TO:yourtarget@her/his_email.com
S : 250 OK
C : DATA
S : 354 Enter message, ending with “.” on a line by itself
C : From : youraccount@youremail.com
C : To : yourtarget@her/his_email.com
C : Subject : Hello There!!
C : your message begin here. to end the message type “.” (without double quote) on a new line
S : 250 OK
C : QUIT
S : 221 c.smtp.telkom.net closing connection

0 komentar:
Post a Comment