Generating email reply on clicking a link in the email

nehayadav
Kilo Contributor

Is it possible to click a link in the email sent to the user by ServiceNow, that generates the reply and the user just has to click send? I have a scenario where some action has to be performed based on user's reply and I want to force the reply instead of user typing it in. Also the ServiceNow instance I am using is internal to the company, will authentication be required if I go this route?

14 REPLIES 14

HI Doug,



Can we respond to the email notification through a link in the email sent to us. I mean clicking the link in the email notification we received, will open up a email and we can respond to that?



Thanks,


yes sir.. in the mail i quoted..



<mail_script>


template.print("<a href='mailto:[your instances email address]?subject=Re:${sysapproval}%20-%20unsatisfied&body=${watermark}'> Click here if your issue was not properly resolved ${sysapproval}</a>");



the a ref makes it a link.. and the mailto makes it open an email...


Yes, can we make the instance email address, subject to auto populate by checking/configuration, like not by specifying the email address but dynamically?



Thanks,


sure in the mail script add a line



var email = gs.getProperty('instance_name');



now you have to look at the property for your intstance name and use string manipulation to make it match the email address using .replace etc so you have what you want.. then you put in...



template.print("<a href='mailto:" + email + "@yourdomain.com?subject=....


Thanks Doug, I did use


<mail_script>


template.print('<a href="mailto:' + gs.getProperty("glide.email.user") +'?subject=' + 'RE:' + current.number + 'Feedback' + '&body=' + email.watermark + '">' Click here to provide feedback'</a>');


</mail_script>



But it does not show up anything on the email notification


Any suggestions?