python登录pop3邮件服务器接收邮件

2015-05-24 0 818
python登录pop3邮件服务器接收邮件
import poplib, string
PopServerName = "mail.yourserver.com"
PopServer = poplib.POP3(PopServerName)
 
print PopServer.getwelcome()
PopServer.user('yourName')
 
PopServer.pass_('yourPass')
r, items, octets = PopServer.list()
msgid, size = string.split(items[-1])
r, msg, octets = PopServer.retr(msgid)
msg = string.join(msg, "\n")
print msg
 

遇见资源网 python python登录pop3邮件服务器接收邮件 http://www.ox520.com/15374.html

上一篇: Python3.4 PIL的使用
下一篇: QQ群聊小黄鸡
常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务