intonate/laravel-mandrill-driver

Mandrill mail driver for Laravel

v4.0 2024-04-12 01:19 UTC

This package is auto-updated.

Last update: 2024-04-12 01:34:53 UTC


README

PHPUnit StyleCI License

The missing Mandrill API based mail driver for Laravel

Versions

Laravel Install
11.x ^4.0
10.x ^3.1
9.x ^3.0
8.x ^2.0
7.x ^1.2
6.x ^1.0

Laravel 8, 9, 10 & 11 Installation

  • First, require the package using composer:
composer require intonate/laravel-mandrill-driver
  • Add the MAIL_MAILER and MANDRILL_SECRET environment variables:
MAIL_MAILER=mandrill
MANDRILL_SECRET=YourMandrillAPIKey
  • Add mandrill config to the config/services.php file:
'mandrill' => [
    'secret' => env('MANDRILL_SECRET'),
],
  • Add mandrill option to the config/mail.php "mailers" array:
'mandrill' => [
    'transport' => 'mandrill',
],

Laravel 6 & 7 Installation

  • Set the MAIL_DRIVER=mandrill and MANDRILL_SECRET environment variables.
  • Add mandrill config to the config/services.php file:
'mandrill' => [
    'secret' => env('MANDRILL_SECRET'),
],

Credits

License

This is an open-sourced software licensed under the MIT license.