[英]Send email notification from Jenkins throwing error
我正在尝试从 Jenkins 向用户发送电子邮件。
下面是我的配置看起来如何。
使用 SSL
启用 SSL 选项时,出现以下错误
javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted
虽然我确信凭证是有效的。
如果我尝试使用相同的凭据且没有 SSL,则会引发错误。
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
如何添加我的 Gmail 帐户以发送电子邮件?
谢谢!
您需要允许不太安全的应用程序,您可以通过单击下面的链接来实现
https://www.google.com/settings/security/lesssecureapps
另外,试试这个
https://accounts.google.com/DisplayUnlockCaptcha
如果仍然无效,请尝试更改 Gmail 的密码。
上面已经过尝试和测试,对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.