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

email-ext should be able to send emails in both HTML and text

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Jenkins 1.532.3
      email-ext 2.37.2.2

      The email-ext plugin can be configured to send emails with either HTML or plain text. It would be quite nice to have an option to send them as multipart messages containing both HTML and plain text.

      My use case is sending HTML notification to a mailman mailing list. The mails are received just fine and show up nicely formatted.

      Mailman archiver does not support HTML though, so it strip it out and only show the plain text content which is empty.

      Example:

      http://lists.wikimedia.org/pipermail/qa-alerts/2014-May/000005.html

      shows:

      An HTML attachment was scrubbed...
      URL: <http://lists.wikimedia.org/pipermail/qa-alerts/attachments/20140521/0dc7bbc7/attachment.html>

      Expected:

      FAILURE whatever-job-here build #42
      http://jenkins.example.com/ci/job/whatever-job-here/42

      An HTML attachment was scrubbed...
      URL: <http://lists.wikimedia.org/pipermail/qa-alerts/attachments/20140521/0dc7bbc7/attachment.html>

      That would be a very nice addition to the plugin.

          [JENKINS-23126] email-ext should be able to send emails in both HTML and text

          Alex Earl added a comment -

          Would you want different content entry areas for each content type, or just a stripped version of the HTML used as the txt?

          Alex Earl added a comment - Would you want different content entry areas for each content type, or just a stripped version of the HTML used as the txt?

          Alex Earl added a comment -

          Added option to send both HTML and plain text. The plain text is a stripped version of the HTML using Jericho.

          Alex Earl added a comment - Added option to send both HTML and plain text. The plain text is a stripped version of the HTML using Jericho.

          Code changed in jenkins
          User: Alex Earl
          Path:
          pom.xml
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/plugins/CssInliner.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties
          src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.groovy
          src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.properties
          src/test/java/hudson/plugins/emailext/EmailTypeTest.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java
          src/test/resources/plugins/config-file-provider/config-file-provider.hpi
          http://jenkins-ci.org/commit/email-ext-plugin/7ab3d5966c7f4454d44dd0f1c8c1037262f20563
          Log:
          Fix JENKINS-23126

          Added option to send in both HTML and plain text. The plain text version
          is a stripped version of the HTML using the Jericho library.

          Compare: https://github.com/jenkinsci/email-ext-plugin/compare/8a47a78f5ed9...7ab3d5966c7f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/plugins/CssInliner.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.groovy src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.properties src/test/java/hudson/plugins/emailext/EmailTypeTest.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java src/test/resources/plugins/config-file-provider/config-file-provider.hpi http://jenkins-ci.org/commit/email-ext-plugin/7ab3d5966c7f4454d44dd0f1c8c1037262f20563 Log: Fix JENKINS-23126 Added option to send in both HTML and plain text. The plain text version is a stripped version of the HTML using the Jericho library. Compare: https://github.com/jenkinsci/email-ext-plugin/compare/8a47a78f5ed9...7ab3d5966c7f

          Code changed in jenkins
          User: Alex Earl
          Path:
          pom.xml
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/plugins/CssInliner.java
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties
          src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.groovy
          src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.properties
          src/test/java/hudson/plugins/emailext/EmailTypeTest.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/b8a4f329d066447638205ecc24588eff5ed662ce
          Log:
          Fix JENKINS-23126

          Add ability to select "both" for HTML AND plain text

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/plugins/CssInliner.java src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.groovy src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.properties src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.groovy src/main/resources/hudson/plugins/emailext/plugins/EmailTrigger/config.properties src/test/java/hudson/plugins/emailext/EmailTypeTest.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptorTest.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java http://jenkins-ci.org/commit/email-ext-plugin/b8a4f329d066447638205ecc24588eff5ed662ce Log: Fix JENKINS-23126 Add ability to select "both" for HTML AND plain text

            slide_o_mix Alex Earl
            hashar Antoine Musso
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: