News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

css style not applied in email with order informations

Started by garda, January 03, 2013, 18:07:53 PM

Previous topic - Next topic

garda

Hi,

I have a problem with email sent to shopper containing order informations.
The email contains css style, but rules are not applied at all to the html elements in the email.
I tried to send the email both to a Gmail and a Yahoo email address, but the problem is the same.
What could be the reason?

Thank you very much

Dan

K&K media production

Where are your css styles? Included in the shopper mail?

garda

Yes they are included in the shopper email.
It is the default virtuemart template. I didn't change anything.

Last update. The problem I explained doesn't exist if receiver is a yahoo mail.
With Gmail the problem exists. I don't know with other email domains.
What could be a modification in virtuemart php files in order to make the template more compatibile with all emails?

garda

SOLVED
I've discovered that this is just a problem in Gmail (and maybe in some other email provider I don't know).
Gmail accepts only inline css rules.

I fixed the issue by taking all css rules written in .../invoice/mail_html.php and rewriting them inline in html tags.

SergioBo

I have not figured out how to solve the problem, you can tell me the exact solution. thanks

Maxim Pishnyak

I replied to you SergioBo in another thread about this issue.

You'd posted there the same question, do you remember?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Renata

Dear Garda,

Could you please provide me an example of your solution? I have checked the regarding php file, but it starts with <html> and ends with </html>

I hope to hear from you soon.

Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.