Class CssInliner


  • public class CssInliner
    extends Object

    Inlines CSS to avoid the dreaded GMail Grimace.

    The magic keyword is data-inline="true".

    • When used in conjunction with the style tag, it inlines the stylesheet defined there into all html elements matching the rules.
    • When used with the img tag, it base64 encodes the image it found to make it visible in the email.
    Author:
    Rahul Somasunderam