Adding email notification to the pipeline