The Newsroom → Announcements → Aug 20th, 2026
View & Test Your Mailables with Zero Wiring
View & Test Your Mailables with Zero Wiring
Mailables Viewer discovers every Laravel mailable and drops it in the Control Panel — complete with live preview and sample data editor.
If you're anything like me, you've got a bunch of /preview-email/{email} routes sitting in web.php, commented out until you need them. You know the ones. They new up a WelcomeEmail Laravel mailable with a pile of fake data, dump the HTML, and give you a webpage you can hit while you make your changes.
Or maybe you're even lazier and you just send it to yourself. Again. And again. You're afraid Herd Pro or Mailtrap are starting to judge you. Been there too.
Well, I got tired of that and built Mailables Viewer.
It's a free addon for Statamic. Install it, hit Utilities → Mailables, and every concrete mailable in app/Mail is right there in the browser. You can see the actual rendered HTML and flip between desktop, tablet, and mobile. Or copy the HTML if you want to plop it in your email service and send a real test.
Everything it does
- A live HTML preview of every mailable — discovered automatically, no config file, no "just this once" preview route
- Sample constructor data, injected for you, so you can preview without writing a factory
- Editable scalars — strings, numbers, bools, datetimes — with the preview and envelope updating as you type
- The boring-but-important stuff: subject, from, attachments, template, queue status, and everywhere the class is referenced in your codebase
- Send a test to any address with
sendNow(), so even queued mailables go out immediately
Change a name, an email, a date, and see what happens. Make sure the email handles crazy long names and weird bits of data. Objects and arrays stay read-only to keep the scope simple.
What if you have mailables that don't live in app/Mail?
In case you structure your app differently than the defaults (hey, it's your app, you do you), you can tell Mailables Viewer where to find yours.
use Statamic\MailablesViewer\Mailables; Mailables::register(\App\Mail\Billing\InvoiceReady::class);
Pass a class or an array. The facade works too.
Go install it
composer require statamic/mailables-viewer
Super users see it automatically and there's an access mailables utility permission available for everyone else.
So go check it out on the Marketplace. And go delete those preview routes. I'm headed there myself.