使用python发送电子邮件-简单的smtp电子邮件客户端库
python-simplemail的Python项目详细描述
发送带有或不带附件的电子邮件。
安装
pip install python-simplemail
示例
importsimplemailsimplemail.Email(smtp_server="localhost",smtp_user="my_username",smtp_password="my_password",from_address="sender@domain.at",to_address="recipient@domain.at",subject=u"This is the subject with umlauts (ÖÄÜß)",message=u"This is the short message body with umlauts (ÖÄÜß).").send()
在德国python论坛中查找示例:http://www.python-forum.de/viewtopic.php?f=11&t=3158
许可证
- GNU库或更低的通用公共许可证(LGPL)
- 麻省理工学院许可证