Adding CSS to Emails?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 06:40 AM
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.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2014 04:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2014 04:09 AM
Hi Jayaraj,
Here im giving the code pf mail_script.
<mail_script>
template.print('<TABLE><TR bgcolor=#C0C0C0><TH>Number</TH><TH>Priority</TH><TH><font size=6><img src=images/icons/attachment.gifx>Status</img></font></TH></TR>');
template.print('</TABLE>');
</mail_script>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2014 04:18 AM
Hi Harish,
Thanks for your reply.
Actually we have a restriction not to use images in the mail design. Thats why we had selected the CSS to create the shape.
Is there any way to draw a arrow like shape?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2014 04:41 AM
Let me confirm one thing ,
Do you need to create Arrow symbol in mail script by using CSS ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2014 07:00 AM
Hi Harish,
Thanks for your reply.
yes, We are trying to create an Arrow shape by Mail scripts. Email notification will call mail script and mail script calls function in Script Include. The function returns the body content. Now we had added one more function to return the <style> tag content and it is drawing the shape in Chrome and IE 9. i.e Style tag isd getting set in only IE 9 and chrome. But not in IE 8 and higher versions.
Please let us know if you have any other way to draw the shape
Thanks.