guissilveira / maildocker-laravel-driver
Maildocker mail driver for Laravel
Requires
- guzzlehttp/guzzle: ~5.3|~6.0
- illuminate/container: >=5.0
- swiftmailer/swiftmailer: ~5.1
This package is not auto-updated.
Last update: 2024-12-21 19:32:00 UTC
README
Install
Require this package with composer using the following command:
composer require guissilveira/maildocker-laravel-driver
After updating composer, add the service provider to the providers
array in config/app.php
Guissilveira\MailDrivers\Maildocker\MaildockerServiceProvider::class,
You will also need to add the Maildocker API Key and API Secret settings to the array in config/services.php
and set up the environment key
'maildocker' => [ 'api_key' => env('MAILDOCKER_API_KEY'), 'api_secret' => env('MAILDOCKER_API_SECRET'), ],
MAILDOCKER_API_KEY=__Your_api_key_here__ MAILDOCKER_API_SECRET=__Your_api_secret_here__
Finally you need to set your mail driver to maildocker
. You can do this by changing the driver in config/mail.php
'driver' => env('MAIL_DRIVER', 'maildocker'),
Or by setting the environment variable MAIL_DRIVER
in your .env file
MAIL_DRIVER=maildocker
If you need to pass any options to the guzzle client instance which is making the request to the Maildocker API, you can do so by setting the 'guzzle' options in config/services.php
'maildocker' => [ 'api_key' => env('MAILDOCKER_API_KEY'), 'api_secret' => env('MAILDOCKER_API_SECRET'), 'guzzle' => [ 'verify' => true, 'decode_content' => true, ] ],