/laravel-mandrill-driver

Mandrill mail driver for Laravel

Primary LanguagePHPMIT LicenseMIT

Laravel Mandrill Driver

TravisCI StyleCI ScrutinizerCI License

Introduction

This is a community project and not an "official" one

Versions

Laravel Install
6.x ^1.0
7.x ^1.2
8.x ^2.0

Laravel 8 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.