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

Add convenience function for creating a standard MimeMessage

    Details

    • Similar Issues:

      Description

      It is easy to forget, for example, to set Reply-To according to Mailer.DescriptorImpl.getReplyToAddress when sending mail from a Jenkins plugin, which can break acceptance-test-harness usage. There ought to be an easy API in mailer-plugin for generating a preconfigured MimeMessage. createSession is a good start but there should be a higher-level convenience function that presets the From, X-Instance-Identity, Date, and Reply-To headers and returns a MimeMessage ready for a subject and body and recipients and then Transport.send.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is blocking JENKINS-26104 [ JENKINS-26104 ]
            tfennelly Tom FENNELLY made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            tfennelly Tom FENNELLY made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 155396 ] JNJira + In-Review [ 195188 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: