位置:- 正文

python中有哪些邮件模块(python 邮件服务)

编辑:rootadmin

推荐整理分享python中有哪些邮件模块(python 邮件服务),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:python邮件,python you,python3 邮件,python邮件模块有那些,python邮件列表,python邮件模块有那些,python邮件,python邮件,内容如对您有帮助,希望把文章链接给更多的朋友!

python中有哪些邮件模块(python 邮件服务)

1、yagmail模块用于发邮件模块。

2、keyring模块可以访问系统密钥环服务。

3、schedule模块用于定时任务执行器。

4、inbox模块的IMA包进行IMAP操作。

实例

importyagmailusername='xxxxxx@beegee.org'password='xxxxx'smtp='smtp.exmail.qq.com'mail=yagmail.SMTP(user=username,password=password,host=smtp)to=['69xxxxxxx@qq.com']cc=['69xxxxxxx@qq.com']subject='发红包!'content='发红包!'files=[r'D:\test\第一课\01.txt',r'D:\test\第一课\02.txt']mail.send(to=to,cc=cc,subject=subject,contents=content,attachments=files)

以上就是python中邮件模块的介绍,希望对大家有所帮助。更多Python学习指路:Python基础教程

本文链接地址:https://www.jiuchutong.com/zhishi/313155.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/313156.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络