In my previous video we have learnt how to install jenkins on Windows and created a Jenkins job, now
In this video, We will learn how to configure the Gmail SMTP server in Jenkins
Go to the Jenkins home page and click Manage Jenkins.
Select Configure System.
Scroll down to the Email Notification section.
Enter the SMTP server name as smtp.gmail.com.
Click Advanced.
Select Use SMTP Authentication.
Enter your Gmail ID and password.
Select Use SSL.
Enter 465 as the SMTP port.
Enter your email ID as the Reply-to-Address.
Click Save.
There may be below errors while sending Test Email from Jenkins-
Failed to send out e-mail
jakarta.mail.AuthenticationFailedException: 534-5.7.9 Application-specific password required. Learn more at
534 5.7.9 https://support.google.com/mail/?p=In... ix12-20020a170902f80c00b001b53953f306sm2455601plb.178 - gsmtp
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:762)
at jakarta.mail.Service.connect(Service.java:364)
2) jakarta.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=Ba... v10-20020a17090ac90a00b002801ca4fad2sm1308228pjt.10 - gsmtp
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858)
To resolve/fix such error, you can -
Go to your Google Account.
Select Security.
Under "Signing in to Google," select 2-Step Verification.
At the bottom of the page, select App passwords.
Enter a name that helps you remember where you’ll use the app password.
Select Generate.
Add the app password for SMTP GMAIL account instead of your GMAIL account password
Watch this video for better understanding :)
#devops #jenkins #devopsonlinetraininginbangalore #javainterviewquestionsandanswers #cucumber #gmail #smtp #emailservice #smtpserver #AuthenticationFailedException
Смотрите видео How to configure Email Notification in Jenkins | Send Email using Gmail SMTP server онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь SDET Adda For QA Automation 28 Октябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,831 раз и оно понравилось 70 людям.