javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1 [英] javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1

查看:52
本文介绍了javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试从应用程序发送电子邮件时收到以下消息.虽然我为我的项目添加了 mail.jar,但它仍然给我同样的错误.请帮忙.

I get the following message when trying to send email from an application. Though I have the mail.jar added for my project, it still gives me the same error. Please help.

javax.mail.AuthenticationFailedException: 534-5.7.14请通过您的网页登录浏览器和 534-5.7.14 然后再试一次.534-5.7.14 在 534 了解更多信息5.7.14 https://support.google.com/mail/answer/78754 s8sm1528084ots.38 - gsmtp

javax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 s8sm1528084ots.38 - gsmtp

在com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)在com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)在com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)在 javax.mail.Service.connect(Service.java:295) 在javax.mail.Service.connect(Service.java:176) 在augCloud.SendEmailDemo$2.actionPerformed(SendEmailDemo.java:92) 在javax.swing.AbstractButton.fireActionPerformed(Unknown Source) atjavax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) atjavax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 在javax.swing.DefaultButtonModel.setPressed(Unknown Source) atjavax.swing.plaf.basic.BasicButtonListener.mouseReleased(未知源)在 java.awt.Component.processMouseEvent(Unknown Source) 在javax.swing.JComponent.processMouseEvent(Unknown Source) atjava.awt.Component.processEvent(Unknown Source) atjava.awt.Container.processEvent(Unknown Source) atjava.awt.Component.dispatchEventImpl(Unknown Source) atjava.awt.Container.dispatchEventImpl(Unknown Source) atjava.awt.Component.dispatchEvent(Unknown Source) atjava.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) atjava.awt.LightweightDispatcher.processMouseEvent(Unknown Source) atjava.awt.LightweightDispatcher.dispatchEvent(Unknown Source) atjava.awt.Container.dispatchEventImpl(Unknown Source) atjava.awt.Window.dispatchEventImpl(Unknown Source) atjava.awt.Component.dispatchEvent(Unknown Source) atjava.awt.EventQueue.dispatchEventImpl(Unknown Source) atjava.awt.EventQueue.access$300(Unknown Source) atjava.awt.EventQueue$3.run(Unknown Source) atjava.awt.EventQueue$3.run(Unknown Source) atjava.security.AccessController.doPrivileged(Native Method) 在java.security.ProtectionDomain$1.doIntersectionPrivilege(未知来源)在java.security.ProtectionDomain$1.doIntersectionPrivilege(未知来源)在 java.awt.EventQueue$4.run(Unknown Source) 在java.awt.EventQueue$4.run(Unknown Source) atjava.security.AccessController.doPrivileged(Native Method) 在java.security.ProtectionDomain$1.doIntersectionPrivilege(未知来源)在 java.awt.EventQueue.dispatchEvent(未知来源)在java.awt.EventDispatchThread.pumpOneEventForFilters(来源不明)在 java.awt.EventDispatchThread.pumpEventsForFilter(来源不明)在 java.awt.EventDispatchThread.pumpEventsForHierarchy(未知来源)在 java.awt.EventDispatchThread.pumpEvents(来源不明)在 java.awt.EventDispatchThread.pumpEvents(Unknown Source) 在java.awt.EventDispatchThread.run(来源不明)

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect(Service.java:176) at augCloud.SendEmailDemo$2.actionPerformed(SendEmailDemo.java:92) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$300(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

推荐答案

做所有这些步骤,否则错误仍然存​​在.

Do all these steps, otherwise the error will persists.

-您必须只登录一个 Gmail 帐户(用于发送电子邮件的帐户).

-You must have to log into just one gmail account (the one you are using to send email).

-然后转到 https://www.google.com/settings/security/lesssecureapps 并打开此功能.

-Then go to https://www.google.com/settings/security/lesssecureapps and Turn On this feature.

-最后转到 https://accounts.google.com/DisplayUnlockCaptcha 并点击继续.

-And last go to https://accounts.google.com/DisplayUnlockCaptcha and click Continue.

这篇关于javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆