Jenkins Email sending fails

Roam picture Roam · May 12, 2015 · Viewed 44k times · Source

I set up the JENKINS Editable Email notification for my project with trigger for all builds.

the build runs successfully but the emails does not send. The follwing is the result in the console output.

BUILD SUCCESSFUL
Total time: 43 seconds
Email was triggered for: Always
Sending email for trigger: Always
Sending email to: [email protected]
Connection error sending email, retrying once more in 10 seconds...
Connection error sending email, retrying once more in 10 seconds...
Failed after second try sending email
Finished: SUCCESS

Answer

diidu picture diidu · Jun 15, 2015

Make sure SMTP server is configured under "Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"

Note also that depending on your plug-in set up, you may have another place to configure SMTP server. For example under "Manage Jenkins" -> "Configure System" -> "E-mail Notification".

That is not needed for this particular plug-in but it may lead you think you have everything done, while it is not :)