laravel-api-mailer maintained by conkal
Description
A generic api mail driver for Laravel 5.1+
Author
Last update
2023/01/09 20:38
(dev-master)
License
Downloads
7
Laravel Api Mailer
A package that allows you to send emails via an API in your Laravel application.
Installation
To install the package, run the following command in your terminal:
composer require conkal/laravel-api-mailer
Configuration
In your config/app.php file, add the following line to the providers array:
'providers' => [
\Conkal\LaravelApiMailer\ApiMailServiceProvider::class,
];
Next, in your config/services.php file, add the following configuration for the mailapi service:
'mailapi' => [
'api_key' => env('MAILAPI_API_KEY'), //bearer token
'endpoint' => env('MAILAPI_ENDPOINT', 'https://api.mailapi.io'),
]
Don't forget to set the MAILAPI_API_KEY and MAILAPI_ENDPOINT environment variables with your API key and desired endpoint, respectively.