Mailto link in Email template not working

Community Alums
Not applicable

i created notification script and added in email template but is not showing when sending email. i am unable to find the issue. Can you please help 

 

Notification Script 

 

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {

// Add your code here
template.print('<a href="mailto:' + emailto + '?subject=Update Task - ' + current.number + '&amp;body=Do%20not%20delete%20the%20following%20message:%0A${watermark}"> Click here to Update </a>');
template.print("<br/>");
})(current, template, email, email_action, event);

 

Email Template 

 

SurajPS_0-1671522121859.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Community Alums ,

The ${mailto:mailto.xyz} expressions have to be included in email notifications and NOT in email templates.

Learn more from below developer course :

MailTo Email Template

 

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hi @Community Alums ,

The ${mailto:mailto.xyz} expressions have to be included in email notifications and NOT in email templates.

Learn more from below developer course :

MailTo Email Template

 

Community Alums
Not applicable

Hi Sandeep.

expressions added in email notification script only and linked to Template