0

I am adding recipients dynamically using the following in the pre-send script:

import javax.mail.Message
import javax.mail.internet.InternetAddress

msg.addRecipient(Message.RecipientType.TO, new InternetAddress('recipient@example.com'))

Now after adding this the email subject is missing.

How to access the default subject line that Email ext plugin generates by default.

Exploring
  • 2,493
  • 11
  • 56
  • 97
  • If this is indeed the case, please file an issue at https://issues.jenkins-ci.org so it can be debugged. Also, you probably want to add a line at the end of your script with just the word true – slide Feb 23 '14 at 04:15

1 Answers1

0

Please try adding below line to your code

msg.setSubject("Subject");
Himanshu
  • 648
  • 4
  • 11