On Thu, 13 Nov 2008 18:48:04 -0800, Chris Rebert <[EMAIL PROTECTED]> wrote: > 2008/11/13 yoma <[EMAIL PROTECTED]>: >> hi guys! >> I want to use python send an email to acceptor. And i hope to >> receive the message that the acceptor has read my email. >> >> So how to realize that get the message? > > To send an email using Python, you'll need to use the `smtplib` > module: http://docs.python.org/library/smtplib.html#module-smtplib
Well, on Unix it's more correct (and easier) to pipe the mail into /usr/lib/sendmail. Saves you the trouble of configuring SMTP for every mail-enabled application, and is more robust (buffer the mail if the mail relay server is down, or if IP is down; bounce undeliverable messages and so on -- all those robustness features of Internet mail). (I'm assuming here that "user-friendly" Linux distributions haven't broken this old convention. I know Debian still insists on configuring it, but of course the administator can break it on purpose.) It would be nice with a Python module which encapsulated "send a mail" in the best possible way for the current machine. Maybe there are even easy ways to do it on Windows. /Jorgen -- // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu \X/ snipabacken.se> R'lyeh wgah'nagl fhtagn! -- http://mail.python.org/mailman/listinfo/python-list