Font size is not setting to arial

avinashdubey103
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
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

Amit Verma
Kilo Patron
Kilo Patron

Hi @avinashdubey103 

 

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


Please mark this response as correct and helpful if it assisted you with your question.