python 使用poplib获取邮件

poplib
email.mime.text MIMEText

pop_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)


你可能感兴趣的:(python,获取邮件,poplib)