[英]Send email notification from Jenkins throwing error
I am trying to send email to users from Jenkins.我正在尝试从 Jenkins 向用户发送电子邮件。
Below is how my configuration looks alike.下面是我的配置看起来如何。
With SSL使用 SSL
When enabling the SSL option, I am getting the below error启用 SSL 选项时,出现以下错误
javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted
While I am sure that credentials are valid.虽然我确信凭证是有效的。
While with the same credentials & without SSL if I try throws the error.如果我尝试使用相同的凭据且没有 SSL,则会引发错误。
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
How do I add my Gmail account to send email?如何添加我的 Gmail 帐户以发送电子邮件?
Thanks!谢谢!
You need to allow less secure apps, you can do it by click below link您需要允许不太安全的应用程序,您可以通过单击下面的链接来实现
https://www.google.com/settings/security/lesssecureapps
also, try this one另外,试试这个
https://accounts.google.com/DisplayUnlockCaptcha
if it still not works try changing the password for Gmail.如果仍然无效,请尝试更改 Gmail 的密码。
ABove is tried and tested and it worked for me.上面已经过尝试和测试,对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.