Looking to hire Laravel developers? Try LaraJobs

laravel maintained by resent

Description
Resent for Laravel
Author
Last update
2026/07/27 10:18 (dev-main)
License
Downloads
3
Tags

Comments
comments powered by Disqus

Resent for Laravel

Official Laravel integration for Resent.

Install

composer require resent/laravel

Configure

RESENT_API_KEY=re_xxxxxxxxx
MAIL_MAILER=resent

In config/mail.php:

'mailers' => [
    'resent' => [
        'transport' => 'resent',
    ],
],

Optional:

php artisan vendor:publish --tag=resent-config

Send with Laravel Mail

use Illuminate\Support\Facades\Mail;

Mail::html('<strong>It works!</strong>', function ($message) {
    $message->to('you@example.com')
        ->from('Acme <noreply@yourdomain.com>')
        ->subject('Hello from Resent');
});

Send with the bound client

use Resent\Client;

app(Client::class)->emails->send([
    'from' => 'Acme <noreply@yourdomain.com>',
    'to' => 'you@example.com',
    'subject' => 'Hello',
    'html' => '<strong>It works!</strong>',
]);

Links

License

MIT © Resent