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

Add convenience function for creating a standard MimeMessage

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: