Re: [Tutor] need to automate connection

2006-04-25 Thread Kent Johnson
Payal Rathod wrote: > On Tue, Apr 25, 2006 at 06:59:29PM +1200, Liam Clarke wrote: >> Hi Payal, >> >> I see you're connecting to an smtp server Any particular reason yoou >> can't use smtplib? >> http://www.python.org/doc/current/lib/module-smtplib.html > > Because I don't know it exists :) > > B

Re: [Tutor] need to automate connection

2006-04-25 Thread Wolfram Kraus
Payal Rathod wrote: > On Tue, Apr 25, 2006 at 06:59:29PM +1200, Liam Clarke wrote: > >>Hi Payal, >> >>I see you're connecting to an smtp server Any particular reason yoou >>can't use smtplib? >>http://www.python.org/doc/current/lib/module-smtplib.html > > > Because I don't know it exists :) > >

Re: [Tutor] need to automate connection

2006-04-25 Thread Payal Rathod
On Tue, Apr 25, 2006 at 06:59:29PM +1200, Liam Clarke wrote: > Hi Payal, > > I see you're connecting to an smtp server Any particular reason yoou > can't use smtplib? > http://www.python.org/doc/current/lib/module-smtplib.html Because I don't know it exists :) But I don't want to send any mail.

Re: [Tutor] need to automate connection

2006-04-25 Thread Liam Clarke
Hi Payal, I see you're connecting to an smtp server Any particular reason yoou can't use smtplib? http://www.python.org/doc/current/lib/module-smtplib.html Here's a sample script using smtplib to send an email - import smtplib ip = "127.0.0.1" txt = "This is an email message" c = smtplib.SMTP(

[Tutor] need to automate connection

2006-04-24 Thread Payal Rathod
Hi, I need to automate connection to a IP like this. The IP (or domain name) is taken from command line or from user (whichever is easier for me to code). It should emulate, telnet 127.0.0.1 25 mail from: 250 ok rcpt to: <[EMAIL PROTECTED]> 250 ok quit Can Python do this for me? How do I star