Skip to content

Laravel MailBridgeProvider-neutral email for Laravel.

Send transactional mail, hosted templates, and marketing contacts through one stable Laravel API.

One API, multiple providers

php
MailBridge::transactional()
    ->template('welcome')
    ->to($user->email)
    ->data(['name' => $user->name])
    ->dataFor('brevo', ['FIRSTNAME' => $user->name])
    ->dataFor('postmark', ['name' => $user->name])
    ->send();

data() is the baseline. dataFor() is provider-specific and wins when that provider sends the message.

Laravel Mailables Still Work

php
MailBridge::transactional()
    ->to($user->email)
    ->send(new WelcomeMail($user));

Plain Laravel Mail::send() remains untouched for apps that still use it.

Install only what you use

bash
php artisan mailbridge:install
php artisan mailbridge:doctor

Current SDK-backed providers include SendGrid, Amazon SES, Brevo, MailerSend, Resend, Postmark, Mailchimp, Kit, MailerLite, Mailgun, and Mailjet.

Feature coverage

LaneCommon features
TransactionalHTML/text, Laravel Mailables, hosted templates, provider-specific template data, attachments, cc/bcc/reply-to, tags, metadata, provider override, fallback, fake assertions
Marketingsubscribe/unsubscribe, lookup/delete, lists/groups, fields/attributes, campaigns, provider override, fallback, fake assertions

Released under the MIT License.