How to Change Font Style of email scripts

basantsoni
Kilo Guru

 

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  

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Basant,

you can give the css inside template.print

https://community.servicenow.com/community?id=community_question&sys_id=e1aef5f0db3deb00f21f5583ca96...

https://community.servicenow.com/community?id=community_question&sys_id=cda403e9dbd8dbc01dcaf3231f96...

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sanket Khabiya
Kilo Sage

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