Setting colour for links in email templates

Celliven
Giga Expert

In the Incident Resolution acceptance email I am using a template that has colour formatting for the text in the outbound email.

Within the template I call another template for the customer to be able to reject the resolution. This has separate colour formatting that it calls from somewhere.

Would someone be able to point me to where this is set, so I can make it the same as the rest of the outbound email

find_real_file.png

${mailto:ks.mailto.incident.reject} is rendering in Blue, I want it to be green like the rest of the email.

find_real_file.png

Any thoughts?

Thanks

Chris

5 REPLIES 5

russell_miller
Kilo Guru

Hi Chris,



There should be an email template that has either the code in it, or contains a mailscript that is generating the link



From what you have posted the template should be ks.mailto.incident.reject



Let me know how you get on.


Hi Russell



Thanks for the comment.



I thought this too, though the ${mailto:ks.mailto.incident.reject} doesn't have any formatting, which makes me think that it is taking formatting from somewhere else, though I am not sure where.



My understanding is that the mailto is an instruction, do you know if there is somewhere to format that instruction?


${mailto:ks.mailto.incident.reject}



find_real_file.png



Thanks



Chris


Hey Chris...



Ahhh I think your screenshot tricked me... there seems to be some styling that is applied to the email at some point as the links are not underlined, so I assumed that there had been some other custom dev that was giving the



The colouring of the links can be a real tricky one as depending on the email client of the viewer it may force the highlighting of the link in blue (notice your INC0010001 from the screen shot).



It would be possible to use a Notification Email Script to generate your own custom mailto link with formatting, again the challenge of some emails client forcing link colours will present itself.



You could take what I have shared here ServiceNow Test Dummy: Graphic Buttons for email approvals and modify it to suit, if you have the time. Or a quick and dirty part fix may be to change the mailto template to just contain "Click Here" and put the text you have removed around the "click here" link so only those two words are blue.


Hi Russell



I think you are right about it being related to the email client.



I have been testing by moving ${mailto:ks.mailto.incident.reject} to different places and seeing if I could add formatting to ks.mailto.incident.reject.



No matter what I do it remains blue.



I'll discuss with the business if they what to keep the blue or look at your suggestion for a graphic button.



Thanks



Chris