VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: garda on January 03, 2013, 18:07:53 PM

Title: css style not applied in email with order informations
Post by: garda on January 03, 2013, 18:07:53 PM
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
Title: Re: css style not applied in email with order informations
Post by: K&K media production on January 03, 2013, 20:20:15 PM
Where are your css styles? Included in the shopper mail?
Title: Re: css style not applied in email with order informations
Post by: garda on January 04, 2013, 00:22:30 AM
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?
Title: [SOLVED] Re: css style not applied in email with order informations
Post by: garda on January 04, 2013, 02:46:58 AM
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.
Title: Re: css style not applied in email with order informations
Post by: SergioBo on July 23, 2013, 19:21:34 PM
I have not figured out how to solve the problem, you can tell me the exact solution. thanks
Title: Re: css style not applied in email with order informations
Post by: Maxim Pishnyak on July 23, 2013, 21:35:58 PM
I replied to you SergioBo in another thread about this issue.

You'd posted there the same question, do you remember?
Title: Re: css style not applied in email with order informations
Post by: Renata on April 04, 2014, 16:53:26 PM
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