lettr/lettr-laravel package provides a first-class Laravel integration that plugs directly into Laravel’s mail system. Once installed, you can send emails through Lettr using the same Mail facade, Mailable classes, and notification channels you already know — no new abstractions to learn.
Using Cursor? Jump straight in using this prompt
Why Use the Laravel SDK?
Rather than making raw API calls, the SDK gives you:- Native mail transport — Lettr registers as a Laravel mailer, so
Mail::to()->send()works out of the box - Template support — Send Lettr-managed templates with merge tags directly from your application
- Code generation — Auto-generate enums, DTOs, and Mailable classes from your Lettr templates for compile-time safety
- Zero lock-in — Your Mailables remain standard Laravel classes. Switching away from Lettr only requires changing the mailer config
Prerequisites
Before you begin, make sure you have: You’ll also need:- PHP 8.4+ and Composer installed
- A Laravel 10.x, 11.x, or 12.x application
- A
MAIL_FROM_ADDRESSthat uses your verified sending domain
Quick Setup
The fastest way to get started is using our interactive init command. It configures everything automatically.The Init Command
Thelettr:init command provides a guided setup experience that handles everything:

- Prompts for your API key and saves it to
.env - Publishes the configuration file
- Adds the Lettr mailer to
config/mail.php - Optionally sets Lettr as your default mailer
- Generates type-safe template enums and DTOs
- Configures your sending domain
Prefer manual control? The Installation page walks through each step individually so you can configure exactly what you need.
Section Overview
This quickstart is organized into four pages that build on each other:| Page | What You’ll Learn |
|---|---|
| Installation | Manual setup, configuration options, and verifying your installation |
| Sending Emails | All the ways to send emails — Mail facade, Lettr facade, builder, Mailables, attachments, and testing |
| Templates | Working with Lettr-managed templates, versioning, projects, and pulling/pushing templates locally |
| Type Safety | Generating enums, DTOs, and Mailable classes for compile-time safety |