Re: sending emails to a list of recipients [update]

2006-03-27 Thread Tim Roberts
Kun <[EMAIL PROTECTED]> wrote: > >Kun wrote: >> i have the following code: >> >> -- >> import smtplib >> >> from email.MIMEText import MIMEText >> fp = open('confirmation.txt', 'rb') >> msg = MIMEText(fp.read()) >> >> From = '[EMAIL PROTECTED]' >> >> msg['Subjec

Re: sending emails to a list of recipients [update]

2006-03-25 Thread Larry Bates
smtplib docs http://python.active-venture.com/lib/SMTP-example.html say that the to should be a list of addresses (your emails); s.sendmail(msg['From'], emails, msg.as_string()) -Larry Bates Kun wrote: > Kun wrote: >> i have the following code: >> >> -- >> import

Re: sending emails to a list of recipients [update]

2006-03-25 Thread Kun
Kun wrote: > i have the following code: > > -- > import smtplib > > from email.MIMEText import MIMEText > fp = open('confirmation.txt', 'rb') > msg = MIMEText(fp.read()) > > From = '[EMAIL PROTECTED]' > > msg['Subject'] = 'Purchase Confirmation' > msg ['From'] =