tokenpost/html2mail

A package to convert the css classes in styles.

dev-master 2015-03-13 18:59 UTC

This package is auto-updated.

Last update: 2020-09-13 02:15:50 UTC


README

Library like Premailer (ruby) to render better your html template in email marketging.

require 'vendor/autoload.php';
use Html2Mail\Client;

$body = file_get_contents('path/to/my/html/file.html');
$page = new Client($body);
$page->premailer(); // Changing the tag <style> to style attributes
echo $page;

It's simple like this xD

Bug report

Renato Cassino renatocassino@gmail.com