Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins CI, how to add Importance property to EMail header?

I would like Jenkins emails to have "Importance" icon (in Outlook)

If I generate the email manually - I can achieve this by adding these properties in the SMTP header: Priority:High Importance:high

Is there way to add them into Jenkins email headers? I could not find any plugin or option doing that :(

like image 255
Vlad Bayan Avatar asked Dec 06 '25 06:12

Vlad Bayan


1 Answers

There's a ticket requesting this feature in the Jenkins emailExt project: https://issues.jenkins.io/browse/JENKINS-69592?jql=labels%20%3D%20email-ext

One user listed a workaround in the comments there:

workaround

Code is just adding a presendScript presendScript: '''msg.addHeader("X-Priority", "1")''')

like image 169
jpadams Avatar answered Dec 08 '25 22:12

jpadams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!