PHP code example of daruwanov / silex-provider-mandrill-messages
1. Go to this page and download the library: Download daruwanov/silex-provider-mandrill-messages 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/ */
daruwanov / silex-provider-mandrill-messages example snippets
php
use Silex\Application;
use Daruwanov\Provider\MandrillMessagesServiceProvider;
$app = new Application();
$app->register(new MandrillMessagesServiceProvider(), array(
"mandrill" => array(
'password'=>$password
)
));
$m = $app['mandrill.messages'];
$m->sendTemplate($templatename, $templatedata, $messageData);