How to Configure Email Notifications in Jenkins for Builds
Configuring email notifications in Jenkins can streamline the communication process for development and operations teams. By setting up email notifications, you can easily monitor the status of builds, receive alerts for failed jobs, and keep everyone informed in real-time. In this guide, we’ll walk through the necessary steps to configure email notifications in Jenkins, whether you’re working with individual builds or Jenkins pipelines.

Step 1: Install the Required Plugins
The first step in configuring email notifications in Jenkins is installing the necessary plugins. Here’s how to do it:
- Navigate to Manage Jenkins > Manage Plugins.
- In the Manage Plugins page, click on the Available tab.
- Use the Filter field to search for “Notification”. Check the boxes next to Email-ext plugin and Email-ext Template Plugin.
- Click Install without restart to install the selected plugins.
Once installed, you can proceed to configure email notifications for your Jenkins environment.
Step 2: Configure Email Notification in Jenkins
Now that the required plugins are installed, you can set up the email notification system.
- From the Jenkins home page, click on Manage Jenkins.
- Select Configure System from the menu.
- Scroll down to the Email Notification section. Here, you’ll need to input your SMTP server settings:
- SMTP Server: smtp.gmail.com
- User Name: your_email@gmail.com
- Password: your_email_password
- Use SSL: Checked
- SMTP Port: 465
Next, click the Advanced button to reveal additional options. Check the box for Use SMTP Authentication, and then enter your username and password for authentication.
- To test the configuration, check the box for Test configuration by sending Test e-mail. Enter a valid email address and click the Test configuration button. This step ensures that your settings are working correctly.
Step 3: Set Up Extended Email Notification
In addition to the basic email notification settings, Jenkins offers extended options for more advanced email notifications.
- Scroll to the Extended Email Notification section within the Configure System page.
- Similar to the basic setup, input the SMTP settings:
- SMTP Server: smtp.gmail.com
- User Name: your_email@gmail.com
- Password: your_email_password
- Use SSL: Checked
- SMTP Port: 465
Make sure the SMTP server settings match those used in the basic email notification setup.
Step 4: Configure Email Notifications for Jenkins Projects
Now that Jenkins is set up to send email notifications, it’s time to configure them for individual Jenkins jobs:
- From the Jenkins home page, click on New Item to create a new project (or select an existing one).
- For Freestyle Projects, scroll down to the Post-build Actions section.
- Select E-mail Notification from the Add post-build action dropdown. Enter the recipient’s email address in the E-mail Notification field.
- If you want to be notified for every unstable build, check the box next to Send e-mail for every unstable build.
For more customization, you can also use the Editable Email Notification option, which allows you to specify custom subject lines, body content, and triggers.
- Click Add post-build action and select Editable Email Notification.
- Enter the recipient’s email address in the Project Recipient List.
- Click the Advanced Settings button. Here, you can set triggers for when the email notifications should be sent (e.g., after every build or only on failure).
Click Save to finalize the settings.
Step 5: Test Email Notifications Functionality
To ensure your email notifications are working as expected, trigger a build in Jenkins. Go to the Jenkins job page and click Build Now. If everything is configured correctly, Jenkins will send an email notification based on the settings you’ve specified.
Conclusion
By following these steps, you can successfully configure email notifications in Jenkins for both builds and pipelines. This setup will help you stay on top of your CI/CD process and address issues as soon as they arise. If you’re looking to further enhance your DevOps processes, consider leveraging ZippyOPS‘s consulting, implementation, and managed services in areas like DevOps, DataOps, Cloud, AIOps, and MLOps. ZippyOPS provides a wide range of solutions designed to optimize operations and streamline your infrastructure management.
For more information on how to improve your DevOps processes and integrate automation at scale, visit ZippyOPS Services or check out their solutions.
If you’re interested in learning more about DevSecOps, Infrastructure Security, or Microservices, you can explore their comprehensive products and solutions here.
Ready to optimize your operations? Reach out to ZippyOPS at sales@zippyops.com for a tailored consultation.



