Monday, May 29, 2006

How to mail using telnet

C: client
S: Server

C:telnet smtp.iitb.ac.in 25
S:220 smtp2.iitb.ac.in ESMTP
C:helo
S:250 smtp2.iitb.ac.in
C:mail from:<root@10.100.106.50>
S:250 ok
C:rcpt to:<guptav@cse.iitb.ac.in>
S:250 ok
C:data
S:354 go ahead
C:Subject: This is subject line.
C:hi vaibhav,
C:how r u? i m fine.
C:bye for now
C:vaibhav
C:.
S:250 ok 1095622024 qp 2471
S:502 unimplemented (#5.5.1)
C:quit
S:221 smtp2.iitb.ac.in
S:Connection closed by foreign host.