notifications are not sent after build - jenkins

I want to send build results - whether it is SUCCESS or FAILURE to some recipients. In Extended E-mail Notification config I set reply to list to some gmail mail.
In my after build section for notification of the job I left notification config as is
But when build fails it does not send notification as recipients list is considered empty.
What is the problem?

Either you fill the Default Recipients inside "Extended E-Mail Notification" and use as Project Recipient List $DEFAULT_RECIPIENTS or you specify directly the e-mail adresses (comma seperated) inside the Project Recipient List
One of the both fields must contain a valid e-mail adress. Otherwhise it will fail with An attempt to send an e-mail to empty list of recipients, ignored. failure.
Additionaly try to verify: Jenkins email-ext plugin thinks I have no recipients configured

Related

Jenkins email extension randomly doesn't send

I'm using the Jenkins Email Extension to send automated build emails, and about 1/4th of the time, it just simply will not send.
I am getting the expected output of
Email was triggered for: Success
Sending email for trigger: Success
Sending email to: emailaddress#example.com anotheremailaddress#example.com
Finished: SUCCESS
But it doesn't send the email. This is completely random. No matter what time, what build, or the list of recipients, it just pretends to send the email but doesn't roughly 1/4th of the time.
Are there additional logs for this extension somewhere? Because other than "Sending email to:" in the regular build logs, it doesn't actually give any confirmation that an email was really sent.
Dunno how you've got the email extension configured, but what I would suggest is spinning up a postfix relay on the server that Jenkins is running on, and configure the email extension to use "localhost". The reason is that then you would get log messages on the server that would show you if Jenkins is actually trying to send the emails or not. It might not be jenkins, it might be something else.

Jenkins Email notification sent successfully but not delivered

Below is the log and its working fine when i ask Jenkins to send it to individuals but the same is not working fine when i ask Jenkins to send it to a distribution list.
04:22:08 Email was triggered for: Always
04:22:08 Sending email for trigger: Always
04:22:08 Request made to compress build log
04:22:08 Sending email to: XXXXXX.XXX#XXXX.com
04:22:08 Finished: UNSTABLE
any help?
enable the option Extended E-mail Notification -> Allow sending to unregistered users and try again.
If Still not receiving the emails, enable the option Extended E-mail Notification -> Enable Debug Mode. So that you will get detailed message.
That usually means you are using an exchange server and the distribution group has only allow authenticated users (which is the default)

How to fix the extended email plugin error "An attempt to send an e-mail to empty list of recipients, ignored"?

I am using Jenkins 2.11 version with extended email plugin (v 1.61). I have set the default triggers to "Always" and "Failure- Any". Using Blue ocean plugin a Jenkins file is created and used to run the job. The settings of the email plugin and jenkins file is attached. The problem is sometimes the jenkins is not able to send the email and logs an message "An attempt to send an e-mail to empty list of recipients, ignored" and sometimes it works fine. How do i fix it?

Jenkins email configuration - Test email configuration succeeds but email is not received by user

I am Using Jenkins v1.521 on Windows 2008 R2 server. I need to enable email build notifications in the builds. I have also installed email ext plugin.
I have configured the SMTP server details under Configure System in Jenkins.
I tried sending the test email from Jenkins using "Test Configuration" option providing my email address and I get a message that says "Email successfully sent" but I don't seem to be receiving the email.
I also tried doing a telnet to the SMTP server directly on the server hosting Jenkins and sent an email manually and it worked. I received the email.
I wonder why the mail sending part does not work via Jenkins?
Could any one please provide me suggestions to fix this issue?
In order to get this to work, a valid email must be entered into the "System Admin e-mail address" field. That field is on the same page but is located in another section higher up. Without doing so, I too received a message that the email was successfully sent but I never received it. Once I set it, the test emails started to be received properly.

Jenkins Extended Email Notification - Email Content as attachment

Using Jenkins 1.499 and version 2.25 of the Jenkins Email Extension Plugin. When emails get sent, the content of the email is showing up as an attachment to the notification and not in the body of the email. In fact, the body of the email is blank. Changing the content type of the email has no effect. We use Exchange/Outlook, could that be the issue? Any ideas to get the content of the email in the body of the message?
I think this may have to do with your junkmail settings, either in Exchange and/or in Outlook
For me, when I received the first Jenkins email in Outlook, I had to click on the warning lines (just above the email header) and select "Add sender to safe senders list"

Resources