Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > Dynamic Newsletter loses CSS View modes: 
User avatar
Member
Member
yourwellness.net - 7/30/2011 4:20:45 AM
   
Dynamic Newsletter loses CSS
Hi All,

I hope this is a quick fix but I have set up a dynamic news letter to send from my site with the intention that every week it will show the latest articles that have been put online.

However, when it is received it doesn't have any real formatting and looks like the CSS has not been pulled through.

Ideally I want it to look like the exact webpage that it is pulling but this doesn't seem to be happening and nothing in the Kentico Documentation helps with this matter of CSS.

All help appreciated

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 7/31/2011 8:03:27 AM
   
RE:Dynamic Newsletter loses CSS
Hi,

Could you please specify how do you define the newsletter's html code?

I don't know if that's the case here, but please verify whether you have included <head> section in your newsletter code.

This section is important for our controls and scripts that later insert the stylesheet definitions into this <head> section.

We've come across a similar issue where this was the cause.
To solve it, we put the default header text from our sample newsletter:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Newsletter</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>

and it helped. So you may try it as well.

If this wasn't the cause in your newsletter, please let us know.

Regards,
Zdenek

User avatar
Member
Member
mlappin-emeraldrugby - 4/3/2012 9:19:02 AM
   
RE:Dynamic Newsletter loses CSS
Hi, I'm having the same problem but the web page I'm generating the newsletter from has been built with the Kentico CMS?

User avatar
Member
Member
mlappin-emeraldrugby - 4/4/2012 10:20:28 AM
   
RE:Dynamic Newsletter loses CSS
Further update. On older Outlook client mail programs the newsletter seems to display fine, but on outlook 2006 onwards, it seems to lose all formatting?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/8/2012 4:17:21 AM
   
RE:Dynamic Newsletter loses CSS
Hi,

in case of dynamic newsletter the html code is generated by transformation you defined. The most important are the css definitions used on the page. Not all elements are supported by different e-mail clients. The Outlook 2006 does not exist, so you probably mean 2007. The list of supported tags you can find here. As you can see, the support is quite limited in this Outlook version:
Guide to CSS support

Best regards,
Ivana Tomanickova