supersendtx/laravel

Laravel integration for the SuperSend TX transactional email API

v0.8.3 2026-08-04 06:02 UTC

This package is auto-updated.

Last update: 2026-08-04 06:08:04 UTC


README

Laravel Mail transport and integration for the SuperSend TX transactional email API.

composer require supersendtx/laravel

Set in .env:

SUPERSENDTX_API_KEY=stx_your_key_here
MAIL_MAILER=supersendtx

Add to config/mail.php:

'supersendtx' => [
    'transport' => 'supersendtx',
],

Then send as usual:

Mail::to($user)->send(new WelcomeMail($user));

Optional: use the Facade / PHP client for direct API calls:

use SuperSendTX\Laravel\Facades\SuperSendTX;

SuperSendTX::client()->emails->send([
    'from' => 'you@yourdomain.com',
    'to' => 'user@example.com',
    'subject' => 'Hello',
    'html' => '<p>It works.</p>',
]);

Docs: https://docs.supersendtx.com/frameworks/laravel