Display an Image embedded into email notification

deepakvednegi
Giga Contributor

Is there anyway that we can embed an image or company logo in all the notifications.

It will be better if can be configured in Email property so that do not have to include or write a code in each notification.

 

Any ideas are appreciated

 

Regards

Deepak Negi

9 REPLIES 9

sp_18
Giga Contributor

where this code should be added?


ignaciosancho
Kilo Explorer

Yes, you can do as users are suggesting with img src. but also you can use ${CMS_URI}/image.pngx on the img src tag and upload it on the images module.



I've got it working on my system. But unfortunately I've got other problem that images are shown well in outlook but not under mobile GOOD platform...



Does anyone know how to deal with it?. images are attached in service now as CID images by the way.



Regards,


Ignacio Sancho


Hi,



Can you please help me out with working of animated emoticon in outlook.


postwick
Giga Expert

I wrote these for ServiceNow Express, but I'm assuming it works the same in Enterprise.   You don't need the full absolute path to the image, btw, if you have uploaded it into SN.



Tip: Images in Express, and in emails - ServiceNow Express Support



https://express.servicenow.com/support/forums/topic/professional-consistent-email-format/



Basically the first post explains how to upload images and manage them, and the second post explains how to use them in emails.   To summarize...upload the image into ServiceNow then create an Email Script that writes the HTML for the image.   Then in any Notification you want, just use the ${mail_script:Script_name} expression.   This makes it easy because if you ever want to change the image you just edit it in one place - the Email Script.



Also, make sure you add the "x" onto the end of the image filename in the script/notifications.   That way ServiceNow actually embeds it into the email rather than your email client having to pull it by URL.


Arun101
Kilo Contributor

Please refer the following link.

Embed Reports as Images in a Scheduled Report Emails

https://community.servicenow.com/community?id=community_article&sys_id=10c63a64db904054fff8a345ca961...

This thread has step by step instructions.

Thanks,

Arun