conkal / laravel-api-mailer
A generic api mail driver for Laravel 5.1+
v0.1.0
2023-01-09 18:25 UTC
Requires
- php: >=5.5.9
- laravel/framework: 5.1.*
This package is auto-updated.
Last update: 2024-12-09 23:53:58 UTC
README
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.