Looking to hire Laravel developers? Try LaraJobs

basicsengage-laravel-mailer maintained by ibrahimsmuhammad

Description
Laravel 9+ custom mail transport for BasicsEngage API
Last update
2025/09/30 11:34 (dev-main)
License
Links
Downloads
27

Comments
comments powered by Disqus

basicsengage-mailer

A PHP Laravel package to extend Laravel's mailer with BasicsEngage support.

Features

  • Seamless integration with Laravel's mail system
  • Send emails via BasicsEngage
  • Easy configuration and usage

Installation

composer require ibrahimsmuhammad/basicsengage-laravel-mailer

Configuration

  1. Publish the config file (if available):

    php artisan vendor:publish --tag=basicsengage-mailer-config
    
  2. 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"
    

Usage

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());

Customization

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

License

This package is open-sourced software licensed under the MIT license.