How to configure SMTP and Email Notifications on Jenkins
Here we are going to understand step-by-step Gmail configurations
In my previous blog, I have shown how to install Jenkins and create a new project
Steps:
- To configure email smtp notification install the plugins.

2. Find the E-mail Notification (Ctrl + F “E-mail Notification”)

3. Click Advanced and add SMTP authentication, Here I have given my gmail account user name and password provided here (now the game begins)

4. To verify the configured email and enter the test email recipient and test configuration

5. To fix the issue
go to our Google account → https://myaccount.google.com/
enable the two steps verification

after that Click the 2-step verification, scroll down we could see the “app passwords”

Click the arrow,we could see the different types of option

Here Type “Jenkins” → Generate → copy the passwords Go back to ur Jenkins email notification part → update this newly generated password over here

Note we could not use our Gmail account password directly here instead of that we have to use the password which we generated from the app password from Gmail
Now if we execute the test will be success

