javax.mail.messagingexception: could not connect to SMTP host:, 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:, port: 465.
Apr 16 in Jenkins by akhtar
• 10,580 points

1 answer to this question.

0 votes


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 by MD
• 23,050 points

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 2,891 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 4 days ago in Jenkins by MD
• 23,050 points
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,850 points
+2 votes
5 answers
+13 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,420 points
0 votes
1 answer
0 votes
1 answer