We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Font size is not setting to arial

avinashdube
Tera Guru

In the below email script font size is setting set to calibri but i am trying to set it to arial 


script :


template.print("<html><body<table id='tblMain' cellspacing='0' cellpadding='0' style='width: 100%; border: none; font-family: Arial;'><tbody><tr id='headerRow' style='height: 60px; background: white;'><td style='width: 20%; border-bottom: white;'></td><td style='width: 60%; border-bottom: white;'><img src='" + imageUrl + "'> </img></td><td style='width: 20%; border-bottom: white;'></td> </tr><tr id='blankRow'> <td style='width: 100%; height: 30px; background: white;' colspan='3'></td> </tr> <tr id='contentRow'> <td style='width: 20%; background: white; border-bottom: white solid 5px;'></td> <td style='width: 60%; background: white; border-bottom: #8081AD solid 5px;'><table id='tblContent' cellspacing='0' cellpadding='0' style='width: 100%; border: none; '> <tbody> <tr> <td style='width: 30px;'>&nbsp;</td> <td> <div style='height: 30px'>&nbsp;</div> <div id='divContentHeader' style='font-weight: bold; color: #324450; padding: 30px 30px 30px 30px; font-family: Arial;'>Hello ${u_requested_for.name},</div> </br> </br><div style='height:30px;'>&nbsp;</div><div>On " + finalDate + ", a service request was submitted for " + catItem + ".</div><br/><div>Your request number is <a style='color: #324450;'href='" + reqUrl + "'>${number}</a>.</div><div style='height:30px;'>&nbsp;</div><div> We are handling your service request and will contact you if additional information is needed. </div></br>");

template.print(emailContenttable);


template.print("<div style='font-family:Arial; '>" + it_travle_disa_message + "</div></br><div style='font-family:Arial; font-size: 14pt; font-weight:bold;'>" + it_travle_message + " </div></br><div style='font-family:Arial; font-weight:bold;'>" + it_travle_country_message + "</div><div>" + mobileInfo + "</div></div> </br> </br> <div style='height: 50px'>&nbsp;</div> <td style='width: 30px;'>&nbsp;</td></td> </tr> </tbody> </table> </td> <td style='width: 20%; background: white; border-bottom: white solid 5px;'></td> </tr> <tr id='footerRow'> <td style='width: 100%; height: 30px; background: white;' colspan='3'></td> </tr> <tr id='infoFooter'> <td style='width: 20%; background: white; '></td> <td style='width: 60%; background: white; '><table id='tblFooterContent' cellspacing='0' cellpadding='0' style='width: 100%; border: none; '> <tbody> <tr> <td style='height:30px;'colspan='4'>&nbsp;</td> </tr> <tr> <td style='width: 26px;'>&nbsp;</td> <td style='padding: 0 0 0 0; margin: 0 0 0 0;text-align:center;vertical-align:middle;width:28px;' ><img src='" + iconUrl + "' /></td> <td style='width: 15px;'>&nbsp;</td> <td> <div style='margin: 0 0 0 -18px; font-weight: bold; color: #324450; font-family: Arial;'> " + messagecre + " </div> <div style='padding: 0 0 0 0; margin: 0 0 0 0;font-family: Arial;'> <a style='color: #324450;' href='" + reqUrl + "'>${number}</a> </div> </td> </tr> <tr> <td style='height:30px;'colspan='4'>&nbsp;</td> </tr> </tbody> </table> </td> <td style='width: 20%; background: white; '></td> </tr> <tr id='footerRow1' style='background: white;'><td style='width: 20%; border-bottom: white;'></td> <td style='width: 60%; border-bottom: white;'><img src='" + FooterUrl + "'> </img></td></tr> </tbody> </table></body></html>");

3 REPLIES 3

Mark Roethof
Tera Patron

Hi there,

 

How are you testing this? Actual send out emails? Or using the preview? It is known, that the preview does not 100% previews correct regarding formatting.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

actual ,mails

vermaamit16
Kilo Patron

Hi @avinashdube 

 

Can you please have a look on the below posts which might be helpful :

https://www.servicenow.com/community/developer-forum/how-to-change-email-script-font-size-to-verdana...

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783405

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma