javax mail messagingexception could not connect to SMTP host smtp Gmail com port 465 in jenkins

0 votes

I am trying to configure one jenkins job that will send me one email notification. But I am not able to send emails from Jenkins. It shows me the below error.

javax.mail.messagingexception: could not connect to SMTP host: smtp.gmail.com, port: 465.
Apr 16, 2020 in Jenkins by akhtar
• 38,170 points
1,248 views

1 answer to this question.

0 votes

Hi@akhtar,

In general, gmail will not allow any other application to log in in your account. But if you want to use your gmail account, for that you have to allow less secure app in your gmail account.

Hope this will help you.

answered Apr 16, 2020 by MD
• 95,060 points
So what should we do

Hi,

You have to allow less secure app in your Gmail account. Login to your Gmail account and go to the security option. You will find a less sure app option.

Related Questions In Jenkins

0 votes
1 answer

Not able to connect remote host via jenkins to run ansible playbook

set "host_key_checking = False" in /etc/ansible/ansible.cfg READ MORE

answered Dec 2, 2019 in Jenkins by pavan

reshown Dec 2, 2019 by Vardhan 4,566 views
0 votes
1 answer

not able to launch new node via SSH in Jenkins!

Hi@akhtar, To launch one new node via SSH, ...READ MORE

answered May 29, 2020 in Jenkins by MD
• 95,060 points
269 views
0 votes
1 answer

How to change the default Jenkins port in Windows?

Hi@akhtar, Yes, you can change Jenkins port no. ...READ MORE

answered Jun 3, 2020 in Jenkins by MD
• 95,060 points
10,301 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
955 views
+2 votes
1 answer
0 votes
1 answer