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

查看:160
本文介绍了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(未知源),网址为javax.swing.AbstractButton $ Handler.actionPerformed(未知源),位于javax.swing.DefaultButtonModel.fireActionPerformed(未知源),位于javax.swing.DefaultButtonModel.setPressed(未知源),位于javax.swing.plaf.basic.BasicButtonListener.mouseReleased(未知源)位于java.awt.Component.processMouseEvent(未知源)位于javax.swing.JComponent.processMouseEvent(未知源),位于java.awt.Component.processEvent(未知源),位于java.awt.Container.processEvent(未知源),位于java.awt.Component.dispatchEventImpl(未知源)在java.awt.Container.dispatchEventImpl(未知源)在java.awt.Component.dispatchEvent(未知源),位于java.awt.LightweightDispatcher.retargetMouseEvent(未知源),位于java.awt.LightweightDispatcher.processMouseEvent(未知源),位于java.awt.LightweightDispatcher.dispatchEvent(未知源),位于java.awt.Container.dispatchEventImpl(未知源)在java.awt.Window.dispatchEventImpl(未知源)在java.awt.Component.dispatchEvent(未知源),位于java.awt.EventQueue.dispatchEventImpl(未知源)在java.awt.EventQueue.access $ 300(未知源)java.awt.EventQueue $ 3.run(未知源)java.awt.EventQueue $ 3.run(未知源)java.security.AccessController.doPrivileged(本机方法),位于java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知来源)java.security.ProtectionDomain $ 1.doIntersectionPrivilege(未知源代码)在java.awt.EventQueue $ 4.run(未知源)java.awt.EventQueue $ 4.run(未知源)java.security.AccessController.doPrivileged(本机方法),位于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(未知来源)处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天全站免登陆