.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :target: http://www.gnu.org/licenses/agpl :alt: License: AGPL-3 =============== Mail Inline CSS =============== When you send HTML emails you can't use style tags but instead you have to put inline ``style`` attributes on every element. So from this: .. code:: html
Hej
You want this: .. code:: htmlHej
This module use premailer library to do this. It parses an HTML page, looks up ``style`` blocks and parses the CSS. It then uses the ``lxml.html`` parser to modify the DOM tree of the page accordingly. Installation ============ To install this module, you need first to install `premailer` python library with: .. code:: bash pip install premailer Usage ===== Just use any mail template as Odoo standard feature .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot :target: https://runbot.odoo-community.org/runbot/205/10 Bug Tracker =========== Bugs are tracked on `GitHub Issues