以下代码适用于我的另一个 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.'