位置: IT常识 - 正文
推荐整理分享python中有哪些邮件模块(python 邮件服务),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:python邮件,python you,python3 邮件,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基础教程
上一篇:dedecms如何把内容页和栏目页设置为动态或者静态的方法(dedecms怎么改图片)
下一篇:织梦dedecms搜索页面单独调用搜索结果条数的实现方法(织梦系统)
友情链接: 武汉网站建设