email from windows

prakash jp prakash.stack at gmail.com
Mon Mar 30 06:11:05 CEST 2009


nope not successful. DO let me know the usage of:
#From : prakash.stack at gmail.com
#To: prakash.stack at 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 > 0:
    line = sys.stdin.readline()
    #if not line:
    #    break
    msg = msg + line
    count = count -1
    # The actual mail send
server = smtplib.SMTP('localhost')
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
#pls define the usage

On Mon, Mar 30, 2009 at 7:40 AM, prakash jp <prakash.stack at gmail.com> wrote:

> Hi all,
>
> In windows environment, how to send email from one gmail address to another
> gmail (or another mail) addrress
>
>
> Regards
> Prakash
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090330/6f726095/attachment.html>


More information about the Python-list mailing list