We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

I am updating my email notification

purushothamN599
Tera Contributor
 

In email notification i am updating source code for coloring blue for my Click here to approve STDCHG0001392 &  Click here to reject STDCHG0001392   tried many ways but those are in still gray color only 

 

I am checking in email log (preview email) 

 

<p style="font-size: 11pt;"><u><span style="color: #0066cc;">${mailto:mailto.approval}</span></u> <br><br><u><span style="color: #0066cc;">${mailto:mailto.rejection}</span></u></p>

 

this is my code

 

 

When we click on those it will go to email outlook (that was working fine) 

Please find image

 

 

 

 

 
 
 
 
 
 
 
 

 

3 REPLIES 3

yashkamde
Kilo Sage

Hello @purushothamN599 ,

 

Try using this code :

<p style="font-size: 11pt;">
  <a href="${mailto:mailto.approval}" style="color:#0066cc; text-decoration:underline;">
    Click here to approve STDCHG0001392
  </a>
  <br><br>
  <a href="${mailto:mailto.rejection}" style="color:#0066cc; text-decoration:underline;">
    Click here to reject STDCHG0001392
  </a>
</p>

 

May be sometimes most email clients override custom CSS for hyperlinks. They enforce their own default link styling for security.
Refer this :
How to customize hyperlink colors in email notifications 

If my response helped mark as helpful and accept the solution.

Tanushree Maiti
Giga Sage

Hi @purushothamN599 

 

Check this KB article, if it helps :

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1441386#:~:text=4094%20Views,...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@purushothamN599 

it's already a link & will show in blue color only

what's not working?

In outlook also when user received the email both the links will be in blue color only

55.png

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader