Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:55 PM
Hello Folks,
I am creating email templates specific to client requirement, but i am not able to use either External or inline CSS in the email template body(, getting the forbidden Error when try to save the templates(Same error for Img Src tag also).
Kindly let me know if anyone know how to use the CSS inside the email templates.
A sample code snippet would help better.
Thanks in advance,
Naveen
Solved! Go to Solution.
04/12/2022 01:52 PM
Hi Naveen,
You can set your email template content as HTML as below screenshot :
Then you can build your content using HTML tags and using the "style" parameter
<table style="border:#00B0F0;width:100%;border-collapse: collapse">
Regarding images, you can ask for Saviynt support to drop a specific image in the static/images folder and use below script.
<img src="https://yourssminstance.com/ECM/static/images/yourImage.png" alt="Something" height="25">
Note : If you send images through email templates to an messaging service (as Outlook) that requires you to manually download images from the email so they can be displayed, be aware that this image might be displayed as below :
Hope this helps.
Adrien.
04/12/2022 01:52 PM
Hi Adrien,
Thanks for the information provided, we are in process of creating around 50 email templates for client's requirement and CSS file has like 50 lines, putting inline CSS in each of the email templates is a tedious job and also if any changes required, we would need to edit all templates, is there any option to have CSS file on Saviynt server(like for logo) and use it in the templates?
Or any other alternatives to reduce the work.
Thanks in advance,
Naveen