简体   繁体   中英

Send email notification from Jenkins throwing error

I am trying to send email to users from Jenkins.

Below is how my configuration looks alike.

Without SSL 没有 SSL

With SSL

在此处输入图片说明

When enabling the SSL option, I am getting the below error

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.

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?

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.

ABove is tried and tested and it worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM