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

Add convenience function for creating a standard MimeMessage

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • mailer-plugin

      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.

          [JENKINS-23074] Add convenience function for creating a standard MimeMessage

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-26104 [ JENKINS-26104 ]
          Tom FENNELLY made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Tom FENNELLY added a comment -

          Tom FENNELLY added a comment - https://github.com/jenkinsci/mailer-plugin/pull/16

          Tom FENNELLY added a comment -

          merged upstream

          Tom FENNELLY added a comment - merged upstream
          Tom FENNELLY made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 155396 ] New: JNJira + In-Review [ 195188 ]

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

              Created:
              Updated:
              Resolved: