Closed funcion closed 8 years ago
You have not inlined the styles. Easy to forget but it must be done. This is sometimes call Emogrifier and that might be used by codeigniter
Hello! I have a question, what you're wanting me to say is that styles must be on a single line?
Please can you give me an example of Emogrifier, it would be very helpful for those who do not know that.
Note: _It is possible to do this without applying _Emogrifier?
There are various inlining tools available. Foundation for Emails 2 has one baked into its build process. There are convenient online ones you can try. Just paste your code into them. http://templates.mailchimp.com/resources/inline-css/
or
http://foundation.zurb.com/emails/inliner.html
When you have run it you will see that the styles at the top are distributed through the code as inline style tags all over the template. Most email clients require this, sad though it is.
Excellent, thank you very much, was a big help your support, have a great day, very grateful for your help. Blessings!
Glad to be of service - from down under in NZ!!
@tazzydemon Thanks for assist! Gmail strips all styles in the head - an inliner will therefor solve this problem.
@rafibomb - Thank you very much for your contribution, But, What it means is that the Emogrifier solves the whole problem? What happens to Media Queries, as we make Gmail respect the media queries in the < head >, or we have to put after the < body >?
I am sending an email with Codeigniter 3 configurations'm doing for the mailings in HTML format, here the configuration code.
Mail settings:
Controller:
View - Default email template Foundation: