Sending Drivers

Scale your delivery by building custom sending drivers for any SMTP or API-based email service.

Extending Delivery

While Senddera comes with built-in support for major ESPs, you might need to build a driver for a niche service or a custom internal relay.

Implementing the Contract

Every sending driver must implement the SendingDriverInterface.

namespace Plugins\MyPlugin\Drivers;

use Core\Contracts\SendingDriverInterface;

class CustomDriver implements SendingDriverInterface
{
    public function send($message, $config)
    {
        // Custom logic to send through API
    }
}

Registration

Register your driver within your plugin's boot() method.

\SendingService::register('my_custom_driver', CustomDriver::class);