Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins email-ext plugin not sending mail

Tags:

I have Jenkins version 1.480.3 installed on my machine and Email-Extention Plugin 2.30.2.

Test mail from "Manage Jenkins" section works fine. When I add editable email notification to my jobs, I am not receiving it.

Also tried configuring "Triggers" in editable email notification advanced section. That also didn work. Console logs of build shows email has been triggered.

Can someone help me on how to debug this?

like image 677
Praveen Avatar asked Aug 07 '13 14:08

Praveen


People also ask

Why Jenkins is not sending email?

Jenkins Email Notification Not Working-Solved-Jenkins Email Notification. If you get an error you have to change some permissions on your google gmail id account. Above You provided your gmail id and password. jenkins works like a app.

How do I send email after build in Jenkins?

Built-in. First you have to configure your mail server settings by clicking on Manage Jenkins > Configure System and find the E-mail Notification section near the bottom of the page. Optionally also configure System Admin e-mail address in the Jenkins Location section.

What is extended email notification in Jenkins?

This plugin allows you to configure every aspect of email notifications. You can customize when an email is sent, who should receive it, and what the email says.


2 Answers

At first you have to create a template http://url-to-jenkins/emailexttemplates/. In the field "Project Recipient List" you can add some emails (comma separated). You can also insert global variables (Manage Jenkins > Configure System > Global properties) with:

${ENV, var="PATH"}

enter image description here

The "Advanced Settings..." option provides a trigger management, just add "Recipient List" and now you should get some emails by Jenkins.

enter image description here

like image 134
SlashGordon Avatar answered Sep 28 '22 11:09

SlashGordon


It appears that, in some version Extended E-mail Notification become own SMTP Server configuration. So check your configuration under "Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification" and make sure that fields "SMTP Server" and " Default user E-mail suffix" are filled properly.

Make sure also that the configuration is consistent with "Manage Jenkins" -> "Configure System" -> E-mail Notification.

TL;DR

Fill out fields "SMTP Server" and " Default user E-mail suffix" under "Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"

like image 32
TouDick Avatar answered Sep 28 '22 09:09

TouDick