Changing the font size for email notification body did not effect the comments

windyzz
Kilo Explorer

Hi there,
I tried to change the font size and type of the email notification body by adding a line

<font size="2" face="Arial">
.

However this did not change the font type/size of the comments that were coming from '${comments}'.

It looks to me that there is a default font type/size for that comments.

Is there a way to override this to maintain consistency?

Thanks.
Regards.
3 REPLIES 3

swood
ServiceNow Employee
ServiceNow Employee

windyzz,

We tested this and discovered that HTML tags affect everything in the message body BUT ${comments}.

Steve
Documentation
Service-now


Not applicable

Use the following wrapper for your entire notification body:


<span style="font-family: Arial, Helvetica, sans">
...
</span>


${comments} will inherit font family, but unfortunately will not inherit font size.


Shodi Bakoev
Kilo Expert

Hi @windyzz,

 

Its tricky one but it will work if try in the div tag for some reason p tag won't work for comments but it works everywhere else.  

Example : 

<p style="margin: 0.25in 0in 6pt; font-size: 11pt; font-family: Segoe UI, sans-serif;"><strong><span style="font-size: 12.0pt; font-family: 'Segoe UI', sans-serif; color: black;">Update Details</span></strong></p>
<div style="margin: 0.25in 0in 6pt; font-size: 11pt; font-family: Segoe UI, sans-serif;"><span style="font-size: 12.0pt; font-family: 'Segoe UI', sans-serif; color: black;">${comments}</span></div>

 I did try everything else but this one works hope it works for you too.