How to Change Font Style of email scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 04:10 AM
Hello Friends,
I have prepared some email notification emails that display some data, and some are hyperlinks. But font style and font size I want to add so that those email scripts also will be having same font style like notification email content.
Please help on this, I have stored all information from email notification into variables that are displaying information like:
template.print(PrintVa);
template.print(acknowledge_URL);
template.print(ref_notes);
thanks,
Basant Soni
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 04:16 AM
Hi Basant,
you can give the css inside template.print
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 04:24 AM
You can change the font type in email scripts :
for eg.:
template.print('<p style="font-size:12px; color:#000000; font-family:arial"><strong>');
template.print(PrintVa);
template.print('</strong></p>');
Regards,
Sanket