- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 01:53 PM
Hello there
I have a mail script where i am trying to add ----- and text in next line but its not working can some one help me with that
I have a link up on clicking that it will open outlook with below text
Re: Please reopen INC0239698 (email subject)
______________________
You can type a message before this text.
Please do not edit the Subject or remove the text below
Ref:MSG3004715
Mail script
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var url='<a href="mailto:' + gs.getProperty('glide.email.reopen.incident') + '?subject=Re: Please reopen'+current.number+ '&body=You can type a message before this text. Please do not edit the Subject or remove the following text: , or the record will not reopen'+ email.watermark +'">'+ 'click here to reopen the incident' +'</a>';
template.print(url);
})(current, template, email, email_action, event);
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 02:36 PM
All the email threads says using %0D%0A should work. Try the script I have provided below
https://stackoverflow.com/questions/10356329/mailto-link-multiple-body-lines
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var url='<a href="mailto:' + gs.getProperty('glide.email.reopen.incident') + '?subject=Re: Please reopen'+current.number+ '&body=You can type a message before this text. Please do not edit the Subject or remove the following text: , or the record will not reopen%0D%0A'+ email.watermark +'">'+ 'click here to reopen the incident' +'</a>';
template.print(url);
})(current, template, email, email_action, event);
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 02:22 PM
try this
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var url='<a href="mailto:' + gs.getProperty('glide.email.reopen.incident') + '?subject=Re: Please reopen'+current.number+ '&body=You can type a message before this text. Please do not edit the Subject or remove the following text: , or the record will not reopen'+ email.watermark +'">'+ 'click here to reopen the incident' +'</a>';
template.print(url+"\n");
template.print("------------------\n" + "You can type a message before this text.\nPlease do not edit the Subject or remove the text below");
})(current, template, email, email_action, event);
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 02:30 PM
Have you tried using "<br/>" for a line break?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 02:36 PM
All the email threads says using %0D%0A should work. Try the script I have provided below
https://stackoverflow.com/questions/10356329/mailto-link-multiple-body-lines
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var url='<a href="mailto:' + gs.getProperty('glide.email.reopen.incident') + '?subject=Re: Please reopen'+current.number+ '&body=You can type a message before this text. Please do not edit the Subject or remove the following text: , or the record will not reopen%0D%0A'+ email.watermark +'">'+ 'click here to reopen the incident' +'</a>';
template.print(url);
})(current, template, email, email_action, event);
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 10:19 PM
Nice. It's working.