Introduction
Sometimes your automated tasks need to tell you when they finish or fail. Email notifications in Jenkins pipelines help you get these messages automatically, so you don't have to check manually.
When you want to get an email if your code build fails so you can fix it quickly.
When you want to notify your team that a deployment finished successfully.
When you want to send a summary email after running tests in your pipeline.
When you want to alert yourself if a scheduled job did not run as expected.
When you want to keep stakeholders informed about pipeline results without logging into Jenkins.