(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template, /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action, /* Optional GlideRecord */ event) { var rmb = new global.RenderMai

rob125
Tera Contributor

Greetings Everyone, I've been messing around with this for a few hours, it's starting to drive me nuts.  Can someone be so kind as to tell me how I can have text in the Body of the Outlook message this script below will open when the icon is clicked.

Thanks

Robert

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var rmb = new global.RenderMailtoButton();
var img = "reject.png";
var response = "reject";
template.print(rmb.renderMailtoButton(img,response,'100px'));
})(current, template, email, email_action, event);

6 REPLIES 6

The SN Nerd
Giga Sage
Giga Sage

Have you looked at the Mailto documentation?

https://tools.ietf.org/html/rfc2368

It is incredibly limited.

Others have already given examples of how to populate the body of the email.

Can you share your RenderMailtoButton code? It is custom code.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

AbhishekGardade
Giga Sage

hello RobKon,

Check out this solution:

https://community.servicenow.com/community?id=community_question&sys_id=f602c7e9db98dbc01dcaf3231f96...

Thanks,

Abhishek

Thank you,
Abhishek Gardade