PreMailer.Net icon indicating copy to clipboard operation
PreMailer.Net copied to clipboard

External CSS files and Gmail

Open nhwilly opened this issue 7 years ago • 1 comments

Using external stylesheets to works great with PreMailer!

I'm just leaving this here in case it helps anyone else. It's not specifically related to PreMailer, but it caught me for a minute.

Remember that some email systems ignore (see here) external stylesheets and since you have to use an HTML attribute (which doesn't exist in a standalone stylesheet) to ignore that style section, you effectively must put the mobile styles in a style tag inside the HTML document and ignore them there.

Maybe someday... :) HTH

nhwilly avatar Nov 20 '17 18:11 nhwilly

Having a way for PreMailer.Net to automatically extract media queries would be useful for this case. For Backwards compatibility, it would need to be configurable. I will look into how difficult implementing something like that would be.

jasekiw avatar Sep 15 '23 04:09 jasekiw