Can we add text color in email mail scripts?

kirthi1
Tera Contributor

I am trying to add color red to the text on the email script and not able to do it successfully. 

The below mail script is for the 'Resolved notification- I have a Reject Solution button and then when clicked on the 'Reject Solution' button the text comes from the 'href' in the body (highlighted in yellow).

I am not sure how to change the text color like this text Reject Reason: [type the reason you are rejecting the resolution] 

Any help is appreciated. please let me if there is an easy method.

find_real_file.png

 

 

10 REPLIES 10

sachin_namjoshi
Kilo Patron
Kilo Patron

You can change the font type in email scripts  like below

Include your existing href code between <p></p> tags

 

for eg.:

template.print('<p style="font-size:12px; color:#000000; font-family:arial"><strong>');
template.print(PrintVa);
template.print('</strong></p>');

 

Regards,

Sachin

Hi @sachin.namjoshi ,

Thank you for your response!

I have tried your suggestion like in the screenshot below-

find_real_file.png

I could have implemented it wrongly here in the email script, because I am getting a wrong error like the screenshot below-

When clicked on the 'Reject Solution' button I should be getting the text in the 'href' from the above code.

Could you please point to where am I doing it wrong.

 

find_real_file.png

 

Hi,

do you want color for the text present in href

please explain

Regards
Ankur

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

@Ankur Bawiskar ,

Yes that's exactly what I am looking for. 

I want the text after the "body=" in the href to be in red color.