guissilveira / maildocker-laravel-driver by guissilveira

Maildocker mail driver for Laravel
485
0
1
Package Data
Maintainer Username: guissilveira
Maintainer Contact: guissilveira@gmail.com (Guilherme Silveira da Silva)
Package Create Date: 2016-07-06
Package Last Update: 2016-07-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-23 03:10:43
Package Statistics
Total Downloads: 485
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 1
Total Open Issues: 1

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,
    ]
],