以下代码可与我的另一个gmail帐户一起使用,但是由于我正在使用的该帐户失败,我已经为两个帐户设置了POP3!
import email, poplib
from email.header import decode_header
_MAXLINE = 2048
login = 'genericmail@gmail.com'
password = 'genericpass'
pop_server = 'pop.gmail.com'
pop_port = '995'
mail_box = poplib.POP3_SSL(pop_server, pop_port)
mail_box.user(login)
mail_box.pass_(password)
错误:
raise error_proto(resp)
poplib.error_proto: b'-ERR [AUTH] Username and password not accepted.'