PHP code example of dotblue / mandrill
1. Go to this page and download the library: Download dotblue/mandrill 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/ */
dotblue / mandrill example snippets
$mandrill = new DotBlue\Mandrill\Mandrill($apiKey);
$mailer = new DotBlue\Mandrill\Mailer(new DotBlue\Mandrill\Exporters\MessageExporter(), $mandrill);
$message = new DotBlue\Mandrill\Message();
$message->setFrom('[email protected]');
$message->subject = 'Winter is coming!';
$message->addTo('[email protected]');
$message->addBcc('[email protected]');
$message->addBcc('[email protected]');
$message->html = '<html><body>Winter is coming!</body></html>';
$message->text = 'Winter is coming!';
$mailer->send($message);