雅虎用户名或密码不正确?

Yahoo incorrect username or password?

我通过网络界面创建了雅虎邮箱,启用了pop3访问(设置为自动),但仍然出现以下错误:

poplib.error_proto: -ERR [AUTH] (#MBR1212) Incorrect username or password.

我的 python 脚本。

import poplib
oMailBox = poplib.POP3_SSL('pop.mail.yahoo.com', port=995)
oMailBox.user(username)
oMailBox.pass_(password)

可能是您的账号没有开启pop? https://help.yahoo.com/kb/learn-enable-pop-in%C2%A0yahoo-mail-sln22038.html 或者您没有 yahoo-plus 帐户 (http://www.freeemailtutorials.com/yahooMailTutorials/upgradeToYahooMailPlus.php)

我刚刚尝试在我的 Yahoo 帐户上使用您的代码,但我遇到了同样的错误,但我还有一封辅助电子邮件告诉我何时该帐户发生无法识别的访问,在这种情况下,我会看到以下消息。

看来您可能还必须禁用帐户的安全性并启用 POP3。

Someone attempted to sign in to your Yahoo account ({ACCOUNT_NAME}) from an app that doesn't meet Yahoo's security standards. We blocked this sign in attempt, which was made on:

{DATE} from {LOCATION}.

If you were trying to sign in, then please take one of these actions:

Option 1 (recommended): Use mail.yahoo.com or the Yahoo Mail app for Android and iOS to more securely access your account.

Option 2 (not recommended): If you still want to use an app that uses less secure sign in to your Yahoo account:

Click here: https://login.yahoo.com/account/security#other-apps

Turn on "Allow apps that use less secure sign in"

Go back to your existing email application and sign in to your Yahoo account again.

Using apps that don't meet Yahoo's recommended security standards may leave your account more vulnerable or less secure.