当前位置: 首页 > 知识库问答 >
问题:

javax.mail.验证失败异常: 534-5.7.14

孟意致
2023-03-14

我在尝试从应用程序发送电子邮件时收到以下消息。尽管我有<代码>邮件。为我的项目添加了jar</code>,它仍然会给我同样的错误。请帮忙。

javax.mail。AuthenticationFailedException:534-5.7.14请通过web浏览器登录,然后重试。534-5.7.14在534 5.7.14了解更多信息https://support.google.com/mail/answer/78754s8sm1528084支。38-gsmtp

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) atjavax.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.mouseRelease(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) atjava.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) atjava.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) atjava.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)

共有3个答案

丁鸿信
2023-03-14

遵循以下步骤:

  1. 点击右上角的个人资料图片转到Google帐户
  2. 转到“登录和Security_”选项卡
  3. 向下滚动页面并检查安全性较低的应用程序:关闭按钮
越源
2023-03-14

根据安全和隐私。谷歌可能会阻止一些不使用现代安全标准的应用程序的登录尝试,如OAuth 2.0。

对于javamail,防止此错误的解决方案是:

  1. 转到 Google 帐号中的“安全性较低的应用”部分。
  2. 在“安全性较低的应用的访问权限”旁边,选择开启。
邢飞雨
2023-03-14

执行所有这些步骤,否则错误将持续存在。

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

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

-最后一次去https://accounts.google.com/DisplayUnlockCaptcha然后单击“继续”。

 类似资料:
  • 我正在使用javax邮件从我的活动发送邮件。这是我的属性 使用此设置时,javax会给出错误“javax.mail.AuthenticationFailedException”。 我必须关闭谷歌安全从这个链接! 但是我不想关闭安全服务。有什么方法可以使用吗?我想问题是我的属性,但是我不知道。

  • 我正在测试带注释的javax验证。它们在应用程序中工作良好,方法参数上有注释。但是当我试图通过手动构建验证工厂来测试它们时 我得到以下错误。 javax。验证。ValidationException:HV000183:无法初始化“javax”。艾尔。“表达工厂”。检查类路径上是否有EL依赖项,或者改用ParameterMessageInterpolator 收到这个错误后,我在gradle文件中添

  • 问题内容: 我正在使用XAMPP进行开发。最近,我将xampp的安装从旧版本升级到1.7.3。 现在,当我卷曲启用HTTPS的网站时,出现以下异常 致命错误:消息为“ cURL资源”的未捕获异常“ Re​​questCore_Exception”;资源ID为55;cURL错误:SSL证书问题,请验证CA证书是否正确。详细信息:错误:14090086:SSL例程:SSL3_GET_SERVER_CE

  • 突然,我们的生产服务器出现了一个不可用的错误 下面是我们从日志中发现的异常。 2021-03-26 07:18:11,437 [24] 错误 执行读取器查询系统异常.安全.身份验证.身份验证异常:调用 SSPI 失败,请参阅内部异常。---

  • - 我运行了此脚本,但出现了此错误。我怎么做?

  • 下面是我的代码: 这里有个例外: 对象“users”中字段“salary”上的字段错误:拒绝值[null];代码[NotNull.Users.Salary,NotNull.Salary,NotNull.java.lang.Integer,NotNull];参数[org.springframework.context.support.defaultmessageSourceResolvable:代码