PHP code example of doxxon / laravel-mandrill-request

1. Go to this page and download the library: Download doxxon/laravel-mandrill-request 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/ */

    

doxxon / laravel-mandrill-request example snippets


return array(

	'api_key' => 'your api key here',

);

$payload = array(
	'message' => array(
        'subject' => 'Transactional email via Mandrill',
        'html' => 'It works!',
        'from_email' => '[email protected]',
        'to' => array(array('email'=>'[email protected]'))
   	)
);

$response = Mandrill::request('messages/send', $payload);