PHP code example of seewah / mandrill-template-manager
1. Go to this page and download the library: Download seewah/mandrill-template-manager 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/ */
seewah / mandrill-template-manager example snippets
$m = new \SeeWah\MandrillTemplateManager\MandrillTemplateManager;
$m->generate('{{> header}}<a href="{{siteUrl}}{{> footer}}">Welcome</a>', $partials, array('siteUrl' => 'http://seewah.com'), $css);
$m->publish($mandrillKey, 'template name', '[email protected]', 'See Wah', 'Getting started', false);