Page 1 of 1

gmail not rendering html emails properly!

Posted: Sat Mar 10, 2012 12:02 am
by toolsandtimber
Hi guys, we are just finishing up the setup of our website and we are testing the confirmation emails, unfortunately gmail doesn't seem to be rendering the html properly so it is in plain text only. However Outlook is working fine...

We are using the inbuilt php mail function to send these out and we are on opencart 1.5.1.3.

Any suggestions?

Thanks,

Re: gmail not rendering html properly!

Posted: Mon Mar 12, 2012 6:45 pm
by toolsandtimber
Anyone any ideas??

Re: gmail not rendering html emails properly!

Posted: Mon Mar 19, 2012 9:26 pm
by toolsandtimber
Can anyone help please!?

Re: gmail not rendering html emails properly!

Posted: Mon Mar 19, 2012 9:45 pm
by Out2lunch
]Post a screenshot of whats the problem, as GMAIL works fine for me.

Re: gmail not rendering html emails properly!

Posted: Wed Mar 21, 2012 4:19 am
by uksitebuilder
The problem is due to the CSS styling in the email template being in the head section of the template

I believe this has been fixed in version 1.5.2

To fix, you will need to convert the css to inline styling instead in catalog/view/theme/default/template/mail/order.tpl

Or upgrade to 1.5.2.1 which I believe is quite painless and fixes quite a few bugs

Re: gmail not rendering html emails properly!

Posted: Fri Mar 23, 2012 8:20 pm
by toolsandtimber
Hi Simon, thankyou!

Unfortunately we already have so many customisations, it's not really a choice to upgrade now, it'd set us back quite a lot from all the work we've done!

Yes it is indeed that the formatting needs to be inline. Luckily I found an excellent converter online for future reference to you or anyone else this worked perfectly-:

http://beaker.mailchimp.com/inline-css

apart from the top image logo tag, I needed to use the old line from the email to get this to work <a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" id="logo" /></a>

Re: gmail not rendering html emails properly!

Posted: Mon Mar 26, 2012 6:39 am
by WSurfer
Hi @toolsandtimber for your help. It works like a charm.

Only Outlook is now displaying Times New Roman font in body of the order details.

Any ideas how to change font to be the same as used in head?