[Python] python登录pop3邮件服务器接收邮件 →→→→→进入此内容的聊天室

来自 , 2019-05-06, 写在 Python, 查看 163 次.
URL http://www.code666.cn/view/9e886e4b
  1. import poplib, string
  2. PopServerName = "mail.yourserver.com"
  3. PopServer = poplib.POP3(PopServerName)
  4.  
  5. print PopServer.getwelcome()
  6. PopServer.user('yourName')
  7.  
  8. PopServer.pass_('yourPass')
  9. r, items, octets = PopServer.list()
  10. msgid, size = string.split(items[-1])
  11. r, msg, octets = PopServer.retr(msgid)
  12. msg = string.join(msg, "\n")
  13. print msg
  14.  
  15.    
  16. #//python/8048

回复 "python登录pop3邮件服务器接收邮件"

这儿你可以回复上面这条便签

captcha