(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template, /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action, /* Optional GlideRecord */ event) { var rmb = new global.RenderMai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 03:20 PM
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);
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 05:20 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 11:33 PM
hello RobKon,
Check out this solution:
Thanks,
Abhishek