A PHP Laravel package to extend Laravel's mailer with BasicsEngage support.
- Seamless integration with Laravel's mail system
- Send emails via BasicsEngage
- Easy configuration and usage
composer require ibrahimsmuhammad/basicsengage-laravel-mailer-
Publish the config file (if available):
php artisan vendor:publish --tag=basicsengage-mailer-config
-
Add your BasicsEngage credentials to
.env:MAIL_MAILER=basicsengage BASICSENGAGE_API_KEY=Your Api Key BASICSENGAGE_API_URL="https://api.basicsengage.com/api/v0/dev/email/send"
Use the Laravel Mail facade as usual. The package will route emails through BasicsEngage.
use Illuminate\Support\Facades\Mail;
Mail::to('recipient@example.com')->send(new \App\Mail\YourMailable());You can customize mail settings in config/basicsengage-mailer.php.
'mailers' => [
'basicsengage' => [
'transport' => 'basicsengage',
'api_key' => env('BASICSENGAGE_API_KEY'),
'api_url' => env('BASICSENGAGE_API_URL', 'https://api.basicsengage.com/api/v0/dev/email/send'),
],
This package is open-sourced software licensed under the MIT license.