PHP code example of chrisbarr / mandrill-mailer
1. Go to this page and download the library: Download chrisbarr/mandrill-mailer 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/ */
chrisbarr / mandrill-mailer example snippets
ler = new MandrillMailer/Mailer(MANDRILL_API_KEY);
$message = new MandrillMailer/Message();
$message->setFrom('[email protected]', 'From User');
$message->setTo('[email protected]', 'To User');
$message->setSubject('This is my subject');
$message->setHtml('<p>Html goes here</p>');
$mailer->send($message);