PHP code example of drmonkeyninja / cakephp-inline-css
1. Go to this page and download the library: Download drmonkeyninja/cakephp-inline-css library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drmonkeyninja / cakephp-inline-css example snippets
Plugin::load('InlineCss');
$email = new Email();
$email->template('welcome', 'fancy')
->emailFormat('html')
->helpers(['InlineCss.InlineCss'])
->to('[email protected]')
->from('[email protected]')
->send();
<style type="text/css">
.link {color: red;}
</style>
<p><a href="http://andy-carter.com" class="link">Link</a></p>