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 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)

By gkornbluth - June 7, 2016 - edited: June 7, 2016

Hi Tim,

Instead of using Newsletter Builder and the wysiwyg editor, I've been creating custom e-blasts for my clients which are formatted php web pages that pull a lot of data from the database.

I was looking for an (easy) way to convert the CSS in those pages so that when they're sent as email blasts (using the bulk mailer PHPList) they would look correct in those email clients (Outlook, Gmail, etc.) that strip out various code.

So in effect the page that's emailed is an html page that needs to be formatted while still a php page.

Does that make sense, or am I reading this wrong?

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