Zen Cart Logo
Forums / Basic Configuration / 1.3.7 emails not displaying CSS and html anymore

1.3.7 emails not displaying CSS and html anymore

Views: 1,757

Results 1 to 11 of 11
19 Dec 2011, 1:01 AM
#1
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

1.3.7 emails not displaying CSS and html anymore

Hello,

I have been digging and racking my brain for 3 days. It used to work perfectly with my previous design but now I can't find a way to have my design displayed.

I use Thunderbird and I manage a hotmail, a gmail and my own domain name accounts as well as a french one. Now it doesn't show the same thing everywhere. I also checked directly with the emails clients and this is sometimes worse.
Hotmail shows only the text. My french account shows most of the design css and html. But some css is not showing (for example, the banner or the links colors).

When I set up the css following the basic coding, I get it perfectly in the admin welcome mail (I use chrome), I also get everything in my preview.

Then I thought maybe my emails account and/or thunderbird were stripping the css from my emails. I changed everything to html but the banner is not showing anymore. I've tried everything.

I am really at lost!!!:frusty:

I use Zen Cart 1.3.7
I don't use the override system.
And here is the code of my email template

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> a:link {color:#808000; text-decoration: none;} a:hover {color:#33e1e1; text-decoration: none;} a:visited {color:#88aa00; text-decoration: none;} body { background-color: #444444; } .disclaimer1 {color:#808000; padding:5px;} .disclaimer1 a:link {color:#33e1e1; text-decoration: none;} .disclaimer1 a:visited {color:#88aa00; text-decoration: none;} .disclaimer2 {color:#808000; } </style> </head> <!-- Header Section --> <div align="center"> <p> </p> <table width="919" border="1" align="center" cellpadding="10" margin-top="10%" cellspacing="0" bordercolor="#808000" bgcolor="#FFFFFF"> <tr> <td> <table width="800" height="177" border="0" cellpadding="10" align="center"> <tr> <td><img src="http://recycledbyhyena.com/email/header.jpg" width="800" height="177" /></td> </tr> </table> <p> </p> <div class="content"> <div>$CONTACT_US_OFFICE_FROM</div> <div>$EMAIL_MESSAGE_HTML</div> </div> <!-- Footer Section --> <p> </p></td> </tr> </table> <br> <br> </div> <div align="center"> <!-- Content Section --> </div> <div> <table width="919" border="1" align="center" cellpadding="10" cellspacing="0" bordercolor="#808000" bgcolor="#FFFFFF"> <tr> <td><div align="center"><span class="copyright">$EMAIL_FOOTER_COPYRIGHT</span></div></td> </tr> </table> <br> <br> </div> <div> <table width="919" border="1" align="center" cellpadding="10" cellspacing="0" bordercolor="#808000" bgcolor="#FFFFFF"> <tr> <td><div align="center"><span class="disclaimer1">$EMAIL_DISCLAIMER</span></div></td> </tr> </table> <br> <br> </div> <div> <table width="919" border="1" align="center" cellpadding="10" cellspacing="0" bordercolor="#808000" bgcolor="#FFFFFF"> <tr> <td><div align="center">$EXTRA_INFO</div></td> <tr> </table> <br> <br> <br> </div> <br> <br> </body> </html>

And here the normal css file

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=$CHARSET" /> <base href="$BASE_HREF" /> <style type="text/css"> body {background-color:#444444; font-family:Courier New, Courier, mono; } .header { padding:15px; margin-left:35px; border:0px solid #808000; } a:link {color:#808000; text-decoration: none;} a:hover {color:#33e1e1; text-decoration: none;} a:visited {color:#88aa00; text-decoration: none;} .holder {background-color:#ffffff; border:1px solid #808000; font-size:15px; width:900px; -moz-border -radius: 15px; border-radius: 15px; padding: 10px; margin-bottom:15px; margin-top:20px; margin-left: auto; margin-right: auto; } .content {font-size:10px; padding:10px; text-align:justify; width:875px;} .footer{text-align:center; font-size:15px;} .disclaimer {background-color:#ffffff; border:1px solid #808000; -moz-border -radius: 15px; border-radius: 15px; font-size:10px; padding:10px; margin-left: auto; margin-right: auto; width:900px;} .disclaimer1 {color:#808000; padding:5px;} .disclaimer1 a:link {color:#33e1e1; text-decoration: none;} .disclaimer1 a:visited {color:#88aa00; text-decoration: none;} .disclaimer2 {color:#808000; padding:5px;} .copyright { padding:5px; color:#000000;} </style> </head> <body> <div class="holder"> <!-- Header Section --> <div class="header"> <img src="/email/header.jpg" /> </div> <!-- Content Section --> <div class="content"> <div>Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME,</div> <div>$EMAIL_MESSAGE_HTML</div> </div> <!-- Footer Section --> <div class="footer"> <div class="unsubscribe">$UNSUBSCRIBE_LINK</div> <div class="copyright">$EMAIL_FOOTER_COPYRIGHT</div> </div> </div> <div class="disclaimer"> <div class="disclaimer1">$EMAIL_DISCLAIMER</div> <div class="disclaimer2">$EMAIL_SPAM_DISCLAIMER</div> </div> </body> </html>

In advance thank you for the help!!

19 Dec 2011, 9:46 PM
#2
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

Is it because it is christmas, no one is around? Help please!

19 Dec 2011, 9:54 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

Unfortunately for you, 1.3.7 is no longer supported. You really need to upgrade your site.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

19 Dec 2011, 11:48 PM
#4
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

oh my!!!This will be a nightmare! How do I do that and keep all my setting? :cry:

20 Dec 2011, 12:15 AM
#5
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

I don't think I will upgrade. I will just install the latest version (1.5.0 Rc2) right? Any advice about that?

20 Dec 2011, 10:53 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: 1.3.7 emails not displaying CSS and html anymore

Hyena:

I don't think I will upgrade. I will just install the latest version (1.5.0 Rc2) right? Any advice about that?

That's what I would do. If you've had your store since 1.3.7 was current, chances are the design has gotten a little stale anyway, and you may have found that some of the mods you installed aren't that useful after all, so look at this as a chance to recreate the store.

20 Dec 2011, 4:59 PM
#7
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

Thank you Stevesh, I ended up thinking that too after the first moment of panic. It will be easier to run and all the css design is already there so...
Just one thing, I have read it was not advised to install the beta of 1.5.0 but the current 1.3.9h? Anyway I'll do that first and use the override system this time! :smile:

thank you for your help!

20 Dec 2011, 5:10 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: 1.3.7 emails not displaying CSS and html anymore

For developing a (new) site, it is advised to install v1.5.0RC2 now and start your work. When 1.5.0 is officially released, it will then be a simple matter to apply your customizations to that and take it live.

20 Dec 2011, 5:20 PM
#9
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

gjh42, when will it be released? Because meanwhile I can't send proper newsletter to my customer and this is bugging me. I am a bit crazy on perfect design. I agree that 1.5.0 looks awesome but there is no add on like image handler and so on, which I really appreciate.

20 Dec 2011, 5:46 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: 1.3.7 emails not displaying CSS and html anymore

If you depend on Image Handler or other mods not yet upgraded for v1.5, then install v1.3.9h now. You can always upgrade when conditions are right.

The last I heard, v1.5.0 had "excellent" odds for being released by the end of the year. That was several weeks ago; I have no more recent news.

20 Dec 2011, 5:50 PM
#11
hyena avatar

hyena

New Zenner

Join Date:
Aug 2007
Posts:
50
Plugin Contributions:
0

Re: 1.3.7 emails not displaying CSS and html anymore

ok thank you very much for your help! Now to go through fresh install and coding!!