Python用于电子邮件? [英] Python for email?

查看:89
本文介绍了Python用于电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个发送电子邮件的好模块?


对于我正在处理的网站,我正在编写一个程序,找出

主持人尚未确认他们的预定日期并发送给他们

一封确认的电子邮件。


python是否有任何模块可用于邮件程序,如sendmail,或者

我应该用os.system和os.popen运行一切吗?


感谢您的帮助。

Is there a good module for sending out email?

For a website that I am working on, I am writing a program that finds out
which presenters have not yet confirmed their scheduled date and sends them
an email to confirm.

Does python have any modules for use with mail programs like sendmail, or
should I just run everything with os.system and os.popen?

Thanks for any help.

推荐答案

2004年3月26日星期五17:16:29 -0800,sean写道:
On Fri, 26 Mar 2004 17:16:29 -0800, sean wrote:
是否有一个发送电子邮件的好模块?

对于我正在处理的网站,我正在编写一个程序,找出哪些主持人尚未确认他们的预定日期并发送给他们
一封电子邮件进行确认。

python是否有任何模块可用于sendmail这样的邮件程序,或者
我应该用os.system和os.popen运行一切吗?

感谢您的帮助。
Is there a good module for sending out email?

For a website that I am working on, I am writing a program that finds out
which presenters have not yet confirmed their scheduled date and sends them
an email to confirm.

Does python have any modules for use with mail programs like sendmail, or
should I just run everything with os.system and os.popen?

Thanks for any help.




查看smtplib,它应该做你想做的事情


祝你好运,

Brett



Check out smtplib, it should do what you want

Good Luck,
Brett




sean>是否有一个发送电子邮件的好模块?

查看标准库中的smtplib:

http://www.python.org/doc/current/li...e-smtplib.html


Skip


sean> Is there a good module for sending out email?

Check out smtplib in the standard library:

http://www.python.org/doc/current/li...e-smtplib.html

Skip


文章< ma ********** **************************@python.org>,

Skip Montanaro< sk ** @ pobox .COM>写道:
In article <ma************************************@python.org >,
Skip Montanaro <sk**@pobox.com> wrote:

sean>是否有一个发送电子邮件的好模块?

查看标准库中的smtplib:

http://www.python.org/doc/current/li...e-smtplib.html <跳过




''过去的时间我提到这个:我是smtplib模块的忠实粉丝。

一般来说,我认为这是面向Python的开发人员应该采取的方向,而不是掏出来。发送邮件等。然而,

sendmail和类似的MTA的一个好处,通常不是立即显示的(并且运气好,不会是生命中的)任何

特定项目)是他们对重试的了解。

面临不稳定连接的项目需要利用已安装的MTA,

或编程自己的重试管理。


smtplib介绍其他一些甚至更为边缘的问题。如果

安装的MTA强制执行机构标准(免责声明,建议,......),smtplib可能会破坏这些标准。决定自己

如果这是好事或坏事。

-


Cameron Laird< cl ** **@phaseit.net>

业务: http://www.Phaseit .net


这篇关于Python用于电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆