Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Email body font size looks small in preview of email logs and looks slight bigger in outlook email.

Kartik Choudha1
Tera Guru

I have configured a notification where it has email body content configured in 'Message HTML' field on notification form. Body also has Table configured from email script.

 

Now the issue is this looks perfect in the Preview of the email and from the email logs table's preview as well.

But in th email of outlook the font of body is bigger and font within the table is smaller compare to what we see in the preview of an email notification.

 

Any suggestion or root cause if anybody aware of this?

2 REPLIES 2

Its_Azar
Tera Guru
Tera Guru

Hi there @Kartik Choudha1 

 

You are right i have struggled with the same in the past unfortunately – the “Preview” in ServiceNow uses a browser engine, while Outlook uses its own HTML engine. so it applies different default font sizes and line heights, especially inside tables. To get them to match, try force the font styling explicitly instead of relying on defaults. Set a consistent font/size on the <body> and on the table itself. 

give it a try

Solved: Change font size across the platform - ServiceNow Community

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

Ankur Bawiskar
Tera Patron
Tera Patron

@Kartik Choudha1 

this is a common issue as Outlook might interpret HTML and CSS in different ways

outlook may not support all the css and styles

Emails are not formatted correctly in Outlook or older email applications 

Workaround

-> try to use inline css within both the body and table elements to increase

-> example like this <td style="font-family: Arial; font-size: 12px;">

-> try to use email template

Mini-Lab: Adding CSS To an Email Notification - Part 2 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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