Adding CSS to Emails?

jayarajantony
Giga Contributor

We are looking for adding CSS (Adding a arrow shapes to showcase the state) in the Email we designed. We had used mail scripts and script include which are called from Email Notification.(Email notification calls mail script, Mail script calls the function in script include which returns html content of the mail design) . In script include we get style tag and its content(populated from local style sheets) and returning it to notification but it is not reflecting properly.

 

Is there any way to add CSS to Email notifications? or Is there any way to add style tag or head tag to notification.

 

Note: We have also used email templates   where CSS worked but for few browsers(IE8,9 ,chrome). it comments the style tag and the CSS is not working as expected.

25 REPLIES 25

Anyone has any idea on this issue?


Hi Jayaraj,



                                      I tried to create arrow symbol by using css . But the symbol not good looking . Let me know if it is fine ill create mail script for you in this way.



Regards,


Harish.Arrow symbol.JPG


Hi Harish,


Please visit below link


I am struggling with the syntax template.print()


Gurpreet07
Mega Sage

I developed few of the email notifications and came to know that .


1. Better to use tables in there , Outlook is also Table friendly .


2. Only inline Style tag is sported in service now email notifications.



Try to use divs with inline style tags and inline style tag.