mail sending using telnet in python

praba kar prabapython at yahoo.co.in
Fri Jul 8 02:49:25 EDT 2005


Dear All,
      Normally we can send mail using
telnet in linux. In the following way
[~user]telnet Ipaddress 25
mail from: raj at rajkumar.com
250 o.k(response of from commandline)
rcpt to: test at oops.co.in
250 o.k(response of from commandline)
data
354 go ahead(response of from commandline)
Hello world(message to send)
.
250 ok 1120805818 qp 1463

Is it possible to run same thing same manner
in python?  If possible kindly help me with
specimen code.  Actually I gone through
telnetlib module documentation but I cann't
get solution for it.

regards
prabahar



	

	
		
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com



More information about the Python-list mailing list