Email Friendly Inline CSS converter that plays well with PHP code for sending web pages as email

5 posts by 2 authors in: Forums > CMS Builder
Last Post: June 7, 2016   (RSS)

By gkornbluth - June 6, 2016

Hi All,

When sending a web page as an email many email clients strip out things like head and style tags and won’t render a page correctly unless the page’s CSS is inline.

MailChimp had a fairly PHP friendly Inline CSS converter that is unfortunately no longer available to the public, and all of the others that I’ve tried make quite a mess of PHP code.

Has anyone found an approach that works?

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Toledoh - June 6, 2016

I use http://foundation.zurb.com/emails/inliner.html and it seems to work well.

I have discussed with interactivetools.com about inlcuding an inliner as a plugin / adaption and it's possible, I just haven't found a budget for it as yet.

Cheers,

Tim (toledoh.com.au)

By gkornbluth - June 7, 2016

Thanks Tim,

I'm not having as good luck with pasting a PHP page into that.

It trashes many of the php statements and leaves fragments of class and other tags all over the place.

Any hints?

Maybe it's time to explore crowd funding?

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Toledoh - June 7, 2016

Hey Jerry.

I just re-read your post... I've never actually tried inlining PHP code, just HTML.  However, I'm not sure why you would inline PHP - surely most email browsers wouldn't run PHP anyway?

Have a look at http://www.interactivetools.com/forum/forum-posts.php?page=1&CSS-Inliner-79825 - it may give you some ideas.

Cheers,

Tim (toledoh.com.au)