Automated Email - What did I do wrong here?

Ken ken at hotmail.com
Tue Jun 4 09:41:06 EDT 2002


"Ken" <ken at hotmail.com> wrote in message
news:adifmg$11i5ks$1 at ID-49758.news.dfncis.de...
> "Ken" <ken at hotmail.com> wrote in message
> news:adg1do$10nmr5$1 at ID-49758.news.dfncis.de...
> > How to do automated emailing when results being processed?
> >
> > Thanks
> >
>
> What did I do wrong? It crash the program. Without these code, the cgi
> script works fine. Thanks
>
>     fromaddr = 'ken at hotmail.com'
>     toaddrs = 'ken at hotmail.com'
>     msg = "testing\n"
>     server = smtplib.SMTP('smtp.aol.com')
>     server.sendmail(fromaddr, toaddrs, msg)
>     server.quit()
>
oh...and I did import smtplib...





More information about the Python-list mailing list