how to make smtplib.SMTP('localhost') work on window xp

Tim Roberts timr at probo.com
Thu Oct 2 03:14:10 EDT 2008


zxo102 <zxo102 at gmail.com> wrote:
>
>In my case, I implement an application with python to accomplish
>collecting real time data from a serial port: com1 which is connected
>to some xbee hardwares.
>The python logging module is used to save the information generated at
>runtime into a log file. Since the site is far away from my office, I
>try to
>use a smtp server with the python smtplib module to send the log file
>into my email account regularly so that I can check it from anywhere.

It's quite likely that the correct solution is for you to use the SMTP
server for the Internet provider at the remote site.  When you run your own
SMTP server, it is WAY too easy to leave your configuration open for
spammers to abuse.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list