Skip to content
All integrations

Send email from Laravel with Lettr

Lettr works with Laravel through the lettr/lettr-laravel package and the Mail facade.

Checked

What you can do

  • Send with the Mail facade, Mailables and notifications
  • Generate type-safe enums and DTOs from your templates
  • Manage domains, webhooks, audience and campaigns

How to set it up

composer require lettr/lettr-laravel

The guided setup adds your API key, the Lettr mailer and your sender address.

php artisan lettr:init
use Illuminate\Support\Facades\Mail;

Mail::lettr()
    ->to('user@example.com')
    ->sendTemplate('welcome-email', substitutionData: [
        'name' => 'John',
        'company' => 'Acme Inc',
    ]);

Requirements

  • PHP 8.4 or later
  • Laravel 10, 11, 12 or 13
All integrations