Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

How to use Inline CSS and Img Src tags inside the SSM Email tempaltes

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on April 8 2020 at 06:45 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
2 REPLIES 2

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on April 9 2020 at 12:06 UTC

Hi Naveen,


You can set your email template content as HTML as below screenshot :

image

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 :

image


Hope this helps.

Adrien.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on April 10 2020 at 06:46 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.