zmail简介
Zmail的优势
pip install zmail
开启POP3/SMTP服务
发送邮件
mail 发件的内容,包含主题、正文、附件等
server 发送邮件人的相关信息,如账号,密码,smtp_host, smtp_port
content_html 发送正文为html
content_text 发送正文
attachments带附件
server.send_mail([ ' ',' 12345 @ example.com ' ],mail)收件人列表
server.send_mail([('Boss',''),''], mail) 收件人列表,带收件人名字
server.send_mail(['',''],mail,cc=[''])收件人列表,使用抄送
server.send_mail(['',''],mail,cc=[('Boss',''),''])收件人列表,使用抄送带名字
雅虎中国(yahoo.com.cn):
SMTP服务器需要身份验证。
版权声明:本页面内容旨在传播知识,为用户自行发布,若有侵权等问题请及时与本网联系,我们将第一时间处理。E-mail:284563525@qq.com