Set reply to email address on mailto notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2016 08:27 AM
We have an email that is sent out to an approver when a user requests certain items in the the Service Catalog. The approver then has 2 options; approve or reject. When the click on one of the options it triggers a mailto to start.
However the email address that is populated in the To field on that return is incorrect, is there anyway that I can change that?
Thanks,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2016 08:13 PM
You can accomplish this by using notification scripts and then calling them from either the notification or the template.
* In the notification script, define a variable with the email address value:
var setEmail = 'demonow@service-now.com';
* then, build a link for the same:
var applink = '<a href="mailto:' + setEmail + '?subject=Re:Change%20' + '%20-%20approve&body=Approved' + email.watermark + '"';
* lastly, print it out:
template.print(applink);
Then, call this script using ${mail_script:<script>}