Set reply to email address on mailto notification

Rob Bushrod
Tera Guru

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.

find_real_file.png

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

5 REPLIES 5

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>}