Font size is not setting to arial
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-04-2024 09:34 PM
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;'> </td> <td> <div style='height: 30px'> </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;'> </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;'> </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'> </div> <td style='width: 30px;'> </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'> </td> </tr> <tr> <td style='width: 26px;'> </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;'> </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'> </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>");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-04-2024 09:40 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-04-2024 09:43 PM
actual ,mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-04-2024 10:38 PM
Can you please have a look on the below posts which might be helpful :
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.