321312222 发表于 2016-3-2 08:54:04

python 使用poplib获取邮件

poplibemail.mime.text MIMETextpop_server = pop_port = username = password = pobj = poplib.POP3_SSL(pop_server)pobj.set_debuglevel():    pobj.user(username)    pobj.pass_(password),e:    (e)email_id pobj.list()[]:    ,email_id.split()[]content = .join(pobj.retr()[])MIMEText(content)
页: [1]
查看完整版本: python 使用poplib获取邮件