Make text bold in email script

n_16
Tera Contributor

Hello community leaders,

 

Mail Script:

template.print('<a HREF="mailto:' + mail + '?subject=' + subject + '&body=To help us better understand your rating, please reply to this email but do not modify or delete the following items: satisfaction, survey, ticket.%0Asatisfaction: Dissatisfied%0A' + "survey: " + surv.number + "%0Aticket: " + surv.trigger_id.number + '%0A%0AWhats the main reason for your rating of Dissatisfied?:"><img src="Slightly_Satisfied.png" width="50" height="50"/></a>');

 

 

Requirment is to make the above underline text should be bold & green colour.Lik below

 

Whats the main reason for your rating of Dissatisfied?:

 

Where can we add <b> tags & colour code to achieve this? Pleas ehelp here.

 

 

Thnaks in advance

4 REPLIES 4

n_16
Tera Contributor

Hello @Ankur Bawiskar ,

 

Can you please help here 

 

Thanks in advance

Ankur Bawiskar
Tera Patron
Tera Patron

@n_16 

you can use <b> tag and font tag for green color

Did you try that?

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

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @n_16 ,

 

Give a try to below code :-

template.print('<a HREF="mailto:' + mail + '?subject=' + subject + '&body=To help us better understand your rating, please reply to this email but do not modify or delete the following items: satisfaction, survey, ticket.%0Asatisfaction: Dissatisfied%0A' + "survey: " + surv.number + "%0Aticket: " + surv.trigger_id.number + '%0A%0A<b style="color: green;">Whats the main reason for your rating of Dissatisfied?:</b>"><img src="Slightly_Satisfied.png" width="50" height="50"/></a>');

Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Karishma Dubey
Tera Expert

Hi,

Please use <b> text </b>.