Transactional email that feels like Laravel.
An elegant API that integrates seamlessly with your codebase, plus a visual editor that lets your team update emails without pinging you.
composer require lettr/lettr-phpuse Lettr\Lettr;
$lettr = Lettr::client($apiKey);
$response = $lettr->emails()->send(
$lettr->emails()->create()
->from('hello@yourapp.com', 'Your App')
->to([$user->email])
->subject('Welcome to Your App')
->html($html)
);Set it up once. Never be the bottleneck again.
The visual editor isn't just for marketers — it's a developer benefit. Let your team iterate on emails while you ship features.
// Send using a template
$lettr->emails()->sendTemplate(
from: 'hello@yourapp.com',
to: $user->email,
templateSlug: 'order-confirmation',
substitutionData: [
'name' => $user->name,
],
);Define templates in code. Version controlled. Type-safe.
Your team edits copy and design. No deploys needed.
Built for developers
Fluent Builder API
Chainable methods for building emails. Clean, readable, intuitive.
Template Support
Send using pre-built templates with substitution data for personalization.
Attachments Made Easy
Attach files by path or raw data. PDF, CSV, images - all supported.
Event Tracking
Track opens, clicks, bounces, and deliveries. Full visibility.
Type-Safe with IDE Support
Full autocomplete and type hints. Catch errors before runtime.
Click & Open Tracking
Built-in tracking methods. Enable with a single method call.
Works for the whole team
Visual Editor for Non-Devs
Marketing and ops can update copy without touching code or asking for deploys.
Version Control & Rollback
Every change is tracked. Roll back to any previous version instantly.
Multi-Language Support
Manage translations in one place. Automatic locale detection.
Code that flows like conversation
Every method returns the builder. Chain as many as you need. The API disappears, leaving only your intent.
$lettr->emails()->send($lettr->emails()->create()->from('hello@yourapp.com')->to([$user->email])->subject('Your order shipped!')->html($template)->withClickTracking());Get started in minutes
Four steps to sending your first email. No complicated setup.
Install
composer require lettr/lettr-phpInitialize the client
use Lettr\Lettr;
$lettr = Lettr::client($apiKey);Build your email
$email = $lettr->emails()->create()
->from('hello@yourapp.com', 'Your App')
->to([$user->email])
->subject('Welcome!')
->html($html);Send it
$response = $lettr->emails()->send($email);
echo $response->requestId;Simple, transparent pricing
Start free, scale as you grow. No surprise fees.
Pro
For growing applications.
Your team's last email headache.
Stop building email infrastructure. Start shipping features. Get your API key and send your first email in minutes.