如何在詹金斯的可编辑电子邮件插件中修改mime消息 [英] How to modify the mime message in editable email plugin in jenkins
本文介绍了如何在詹金斯的可编辑电子邮件插件中修改mime消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想修改我从詹金斯(Jenkins)发送的电子邮件。我该怎么做?
i尝试使用msg变量并使用msg.setContent(这是我想要的电子邮件正文中的字符串)设置内容
,但
失败了吗?
i'd like to modify the email message i send from jenkins. how can i do it? i tried to use msg variable and set the content using msg.setContent("this is the string i want in the email body") but it failed any ideas?
推荐答案
我刚刚遇到过相同的任务:
I've just faced same task:
msg.setContent("Test content", 'text/html')
为我工作。
我想可能的类型是文本/ html和文本/纯文本,请检查您是否更改了正确的类型。
I guess possible types are 'text/html' and 'text/plain', check that you are changing the proper one.
这篇关于如何在詹金斯的可编辑电子邮件插件中修改mime消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文