manageitwa / laravel-mailtrap-driver
Provides email support for the Mailtrap.io Email Sending Service through API
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/manageitwa/laravel-mailtrap-driver
Requires
- php: ^7.4
- guzzlehttp/guzzle: ^6.0|^7.0
- illuminate/mail: ^6.0
- illuminate/support: ^6.0
Requires (Dev)
- orchestra/testbench: ^4.0
README
This allows a Laravel v6.x install to use the Mailtrap.io sending service API for sending emails, since the official client does not support any version below Laravel 9.
Usage
Include in Composer:
composer require manageitwa/laravel-mailtrap-driver
The package should be discovered if you have Laravel package auto-discovery enabled. Otherwise, include the service provider in your app.providers
config:
'providers' => [ // ... ManageItWA\LaravelMailtrapDriver\MailtrapServiceProvider::class, //... ],
Finally, ensure that you add the following to config/services.php
:
'mailtrap' => [ 'token' => '', // Set to your API token from Mailtrap ],
You may then set your mail.driver
to mailtrap
and you're away!