Re: email from windows

2009-03-30 Thread Suraj Barkale
prakash jp gmail.com> writes: > Hi all, >   > In windows environment, how to send email from one gmail address to another gmail (or another mail) addrress >   >   Gmail requires SSL smtp support which is missing in Python stdlib. However, you can look at this example (http://www.example-code.com/p

Re: email from windows

2009-03-29 Thread prakash jp
nope not successful. DO let me know the usage of: #From : prakash.st...@gmail.com #To: prakash.st...@gmail.com import sys, smtplib import string fromaddr = raw_input("From: ") toaddrs = string.splitfields(raw_input("To: "), ',') print "Enter message, end with ^D:" msg = '' count = 3 while count >

Re: email from windows

2009-03-29 Thread David Lyon
Hi Prakash, You need to tell the system your smtp host... ie > server = smtplib.SMTP('localhost') needs to read something like server = smtplib.SMTP('smtp.myisp.in') On Mon, 30 Mar 2009 08:58:49 +0530, prakash jp wrote: > preexistant code : > > import sys, smtplib > import string > froma

Re: email from windows

2009-03-29 Thread prakash jp
preexistant code : import sys, smtplib import string fromaddr = raw_input("From: ") toaddrs = string.splitfields(raw_input("To: "), ',') print "Enter message, end with ^D:" msg = '' count = 3 while count > 0: line = sys.stdin.readline() #if not line: #break msg = msg + line

Re: email from windows

2009-03-29 Thread Alan G Isaac
2009/3/29 prakash jp : In windows environment, how to send email from one gmail address to another gmail (or another mail) addrress On 3/29/2009 10:20 PM Chris Rebert apparently wrote: Use the `smtplib` and `email` standard libraries (which, as a bonus, are cross-platform): http://docs.python

Re: email from windows

2009-03-29 Thread Chris Rebert
2009/3/29 prakash jp : > Hi all, > > In windows environment, how to send email from one gmail address to another > gmail (or another mail) addrress Use the `smtplib` and `email` standard libraries (which, as a bonus, are cross-platform): http://docs.python.org/library/smtplib.html http://docs.pyth

email from windows

2009-03-29 Thread prakash jp
Hi all, In windows environment, how to send email from one gmail address to another gmail (or another mail) addrress Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list