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]