PHP code example of therobfonz / laravel-mandrill-driver

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

    

therobfonz / laravel-mandrill-driver example snippets


'mandrill' => [
    'secret' => env('MANDRILL_KEY'),
],

'mandrill' => [
    'secret' => env('MANDRILL_KEY'),
    'headers' => [
        'header-example-x' => env('MANDRILL_HEADER_X'),
        'header-example-y' => env('MANDRILL_HEADER_Y'),
    ]
],


Event::listen(\Illuminate\Mail\Events\MessageSent::class, function($event)
{
    $messageId = $event->sent->getMessageId();
    $messageId = $event->message->getHeaders()->get('X-Message-ID');
}
 

'mandrill' => [
    'transport' => 'mandrill',
],

MAIL_MAILER=mandrill

MAIL_DRIVER=mandrill

$app->register(LaravelMandrill\MandrillServiceProvider::class);