Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9006

Email fails when sending to multiple recipients if _any_ of them are in error

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This program is present in both email-ext and the regular Jenkins email notification. If there are multiple recipients and one of them is in error, the email is not sent. So if one email in a long list becomes invalid for whatever reason the rest of the addresses do not receive the notification.

      This should be re-coded to send to whatever addresses are still valid. That is what most email sending agents do.

        Attachments

          Activity

          Hide
          jswager1 Jason Swager added a comment -

          I've also encountered this issue, still unfixed as of Jenkins 1.433. Here is log output (tweaked to hide the innocent); the address c@test.com really wasn't a valid address, but it was picked up as submitter "c" in a SCM change.

          23:35:15 Email was triggered for: Failure
          23:35:15 Sending email for trigger: Failure
          23:35:15 Sending email to: j@test.com s@test.com c@test.com viraghu@test.com
          23:35:16 ERROR: Could not send email as a part of the post-build publishers.
          23:35:16 javax.mail.SendFailedException: Invalid Addresses;
          23:35:16 nested exception is:
          23:35:16 com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <c@test.com>... User unknown
          23:35:16
          23:35:16 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
          23:35:16 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
          23:35:16 at javax.mail.Transport.send0(Transport.java:169)
          23:35:16 at javax.mail.Transport.send(Transport.java:98)
          23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:243)
          23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:227)
          23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:189)
          23:35:16 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
          23:35:16 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693)
          23:35:16 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:668)
          23:35:16 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:646)
          23:35:16 at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
          23:35:16 at hudson.model.Run.run(Run.java:1447)
          23:35:16 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          23:35:16 at hudson.model.ResourceController.execute(ResourceController.java:88)
          23:35:16 at hudson.model.Executor.run(Executor.java:230)
          23:35:16 Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <c@test.com>... User unknown
          23:35:16
          23:35:16 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
          23:35:16 ... 15 more
          23:35:16 Notifying upstream projects of job completion
          23:35:16 Finished: FAILURE

          Show
          jswager1 Jason Swager added a comment - I've also encountered this issue, still unfixed as of Jenkins 1.433. Here is log output (tweaked to hide the innocent); the address c@test.com really wasn't a valid address, but it was picked up as submitter "c" in a SCM change. 23:35:15 Email was triggered for: Failure 23:35:15 Sending email for trigger: Failure 23:35:15 Sending email to: j@test.com s@test.com c@test.com viraghu@test.com 23:35:16 ERROR: Could not send email as a part of the post-build publishers. 23:35:16 javax.mail.SendFailedException: Invalid Addresses; 23:35:16 nested exception is: 23:35:16 com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <c@test.com>... User unknown 23:35:16 23:35:16 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) 23:35:16 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) 23:35:16 at javax.mail.Transport.send0(Transport.java:169) 23:35:16 at javax.mail.Transport.send(Transport.java:98) 23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:243) 23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:227) 23:35:16 at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:189) 23:35:16 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 23:35:16 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) 23:35:16 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:668) 23:35:16 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:646) 23:35:16 at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) 23:35:16 at hudson.model.Run.run(Run.java:1447) 23:35:16 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 23:35:16 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:35:16 at hudson.model.Executor.run(Executor.java:230) 23:35:16 Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <c@test.com>... User unknown 23:35:16 23:35:16 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) 23:35:16 ... 15 more 23:35:16 Notifying upstream projects of job completion 23:35:16 Finished: FAILURE
          Hide
          slide_o_mix Alex Earl added a comment -

          Is this still an issue?

          Show
          slide_o_mix Alex Earl added a comment - Is this still an issue?
          Hide
          jswager1 Jason Swager added a comment -

          Yes, this is still broken. I'm using the latest Jenkins and the latest email-ext plugin.

          Show
          jswager1 Jason Swager added a comment - Yes, this is still broken. I'm using the latest Jenkins and the latest email-ext plugin.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/72338a0d52a363acc604c2a8ed96bbd57a4eb9d3
          Log:
          Fix JENKINS-9006

          • Add support for partial sending like in MailSender
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/72338a0d52a363acc604c2a8ed96bbd57a4eb9d3 Log: Fix JENKINS-9006 Add support for partial sending like in MailSender
          Hide
          slide_o_mix Alex Earl added a comment -

          Fixed in 72338a0

          Show
          slide_o_mix Alex Earl added a comment - Fixed in 72338a0

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              pgweiss pgweiss
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: