HTML Template with embedded image for email notification.

Girish UR1
Kilo Contributor

Hi all,

Can we create a email template with HTML. Is any one created a email template as below.

If any reference or sample will be helpful.find_real_file.png

5 REPLIES 5

DrewW
Mega Sage

So I do not have any script I can share but you should be able to create a notification and setup the rows to be a mail script that returns the HTML for the rows.

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/script/server-scripting/concept/...

 

Prateek kumar
Mega Sage

Take a look at below thread:

https://community.servicenow.com/community?id=community_question&sys_id=21d08f65db98dbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

I have tried with table. But the design/UI is not  up-to standard.could we include CSS and bootstrap for table in SNOW. 

You can do a lot of things in ServiceNow, but your issue with notifications is that email clients do not support CSS consistently.  So when you send your email to the user you have to have inline CSS for the most part.  You can check here for CSS compatibility with different email clients

https://www.campaignmonitor.com/css/

So you are going to have to output the HTML you need from a mail script, assuming the content of the table is dynamic and it has to include the CSS inline.  Some clients will allow style tags but others will not, check the link above to see and make decisions based on the clients you would like to support.