【问题标题】:trying to send test configuration email but Failed to send out e-mail尝试发送测试配置电子邮件但无法发送电子邮件
【发布时间】:2019-05-21 08:44:49
【问题描述】:

在詹金斯我正在使用 电子邮件通知 smtp 服务器:smtp.gmail.com 我的gmail的用户名和密码 smtp 端口 465 并且我已经安装了电子邮件扩展和电子邮件扩展模板,但它抛出了我的错误。

发送邮件失败

java.net.ConnectException:连接被拒绝:连接

原因:javax.mail.MessagingException:无法连接到 SMTP 主机:smtp.gmail.com,端口:465; 嵌套异常是: java.net.ConnectException:连接被拒绝:连接

【问题讨论】:

    标签: jenkins


    【解决方案1】:

    尝试在 Google 帐户设置中允许“不太安全的应用访问”!

    https://myaccount.google.com/lesssecureapps

    如果这不起作用,请尝试允许从新设备访问 Google 帐户!

    https://accounts.google.com/DisplayUnlockCaptcha

    【讨论】:

      猜你喜欢
      • 2012-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-18
      相关资源
      最近更新 更多