python登录pop3邮件服务器接收邮件的方法
2015-04-30 00:00
941 查看
本文实例讲述了python登录pop3邮件服务器接收邮件的方法。分享给大家供大家参考。具体实现方法如下:
希望本文所述对大家的Python程序设计有所帮助。
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邮件服务器接收邮件的方法
- Python接收Gmail新邮件并发送到gtalk的方法
- Python实现发送与接收邮件的方法详解
- python通过邮件服务器端口发送邮件的方法
- python 利用pop3接收邮件并保存附件
- Python接收Gmail新邮件并发送到gtalk的方法
- C#实现发送和接收pop3邮件方法
- python 接收邮件示例:pop3与imap
- python通过邮件服务器端口发送邮件的方法
- Python发送各类邮件的主要方法
- Python 用POP接收邮件
- python3利用smtplib通过qq邮箱发送邮件方法示例
- python发送各类邮件的主要方法
- python发送各类邮件的主要方法
- 微软Hotmail支持POP3接收邮件
- python使用imap接收邮件的过程...郁闷的探索
- python 实例7 为rhel添加系统用户与登录密码,并给root 发送邮件
- Python 接收邮件(有附件)
- python发送各类邮件的主要方法
- 邮件服务器问题--邮件积压、传递延迟解决方法 推荐