import zmail
server = zmail.server('[email protected]','授权码')
mail = server.get_latest()
# zmail.show(mail)
print(mail['subject'])
# print(mail['id'])
# print(mail['from'])
# print(mail['to'])
# print(mail['content_text'])
# print(mail['content_html'])
zmail.save_attachment(mail,target_path=r'C:\Users\13375\Desktop\python',overwrite=True) #保存附件到指定位置
自动接收邮件
猜你喜欢
转载自www.cnblogs.com/tomhu/p/12343112.html
今日推荐
周排行