Statamic Mailables Viewer: Preview Laravel Emails | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://www.msaied.com/public) - [Home](https://www.msaied.com/public)
- [Projects](https://www.msaied.com/public/projects)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [About](https://www.msaied.com/public#about)

           [  Contact](https://www.msaied.com/public#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://www.msaied.com/public)
- [ProjectsCase studies](https://www.msaied.com/public/projects)
- [ArticlesEngineering notes](https://www.msaied.com/public/articles)
- [CertificatesCredentials](https://www.msaied.com/public/certificates)
- [AboutHow I work](https://www.msaied.com/public#about)
- [ContactGet in touch](https://www.msaied.com/public#contact)

  [Start a conversation](https://www.msaied.com/public#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://www.msaied.com/public)
2. /
3. [Articles](https://www.msaied.com/public/articles)
4. /
5. [Laravel](https://www.msaied.com/public/articles?category=laravel)
6. /
7. Statamic Mailables Viewer: Preview Laravel Emails in the Control Panel

   [Laravel](https://www.msaied.com/public/articles?category=laravel) [Composer Pacakge](https://www.msaied.com/public/articles?category=composer-pacakge) 

 Statamic Mailables Viewer: Preview Laravel Emails in the Control Panel
=======================================================================

 Mailables Viewer is a free Statamic add-on by Jack McDade that auto-discovers Laravel mailables and renders live previews inside the Control Panel — no dedicated preview routes required.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://www.msaied.com/public#person) Published 20 Aug 2026 · Updated 21 Aug 2026 · 3 min read

ShareCopy linkCopied

 ![Statamic Mailables Viewer: Preview Laravel Emails in the Control Panel](https://cdn.msaied.com/574/5ecb785e581163f6a143b14cec070996.png) 

  On this page +1. [Stop Hacking Together Email Preview Routes](#stop-hacking-together-email-preview-routes)
2. [How It Works](#how-it-works)
3. [Inspecting the Envelope](#inspecting-the-envelope)
4. [Sending Test Emails](#sending-test-emails)
5. [Permissions](#permissions)
6. [Why This Matters for Laravel Developers](#why-this-matters-for-laravel-developers)
7. [Key Takeaways](#key-takeaways)

 Stop Hacking Together Email Preview Routes
------------------------------------------

If you have ever littered `web.php` with commented-out `/preview-email/{email}` routes, or sent the same test message to yourself a dozen times just to check a layout tweak, you are not alone. Jack McDade built [Mailables Viewer](https://statamic.com/addons/statamic/mailables-viewer) to replace exactly that workflow.

Mailables Viewer is a **free Statamic add-on** that scans your Laravel application for mailable classes and surfaces them under **Utilities → Mailables** in the Statamic Control Panel. No extra configuration, no dedicated routes, no fake-data bootstrapping scripts scattered across the codebase.

How It Works
------------

Once installed, the add-on:

1. **Auto-discovers** every mailable in `app/Mail` (and any additional directories you register via the facade).
2. **Generates sample constructor data** so each mailable can be instantiated and rendered immediately.
3. **Renders the HTML preview** inline, with desktop, tablet, and mobile viewport toggles.

The live data editor lets you modify scalar constructor values — strings, numbers, booleans, and dates — and watch the preview and envelope update in real time. Objects and arrays are displayed read-only to keep things safe.

### Inspecting the Envelope

Beyond the rendered HTML, Mailables Viewer exposes the full envelope for each mailable:

- Subject line
- Sender address
- Attachments
- Blade/Markdown template reference
- Queue status
- References to the mailable class within the codebase

This makes it straightforward to audit email configuration without ever leaving the Control Panel.

### Sending Test Emails

When you need to verify rendering in a real inbox, the add-on can copy the rendered HTML to the clipboard or dispatch the mailable immediately via `sendNow()`. Notably, this works even for mailables that are normally queued, so you can test the full email without waiting for a worker.

```php
// Mailables outside app/Mail can be registered like this:
use Statamic\Addons\MailablesViewer\Facades\MailablesViewer;

MailablesViewer::discover('App\\Notifications\\Mail');

```

### Permissions

Access is straightforward:

- **Super users** get access automatically.
- **Other roles** can be granted the `access mailables utility` permission through the standard Statamic roles and permissions UI.

Why This Matters for Laravel Developers
---------------------------------------

Email previewing has always been a friction point in Laravel development. The typical workarounds — preview routes, repeated test sends to Mailtrap or Herd Pro, or browser-sync hacks — all require manual setup and tear-down. Mailables Viewer centralises this entirely inside the CMS UI, which is especially valuable on projects where non-developers (content editors, QA testers) need to verify email copy without touching the codebase.

Key Takeaways
-------------

- Free Statamic add-on that auto-discovers and previews all Laravel mailables in the Control Panel.
- Live data editor for scalar constructor values with real-time preview updates.
- Inspect subject, sender, attachments, template, queue status, and codebase references.
- Send test emails immediately with `sendNow()`, even for queued mailables.
- Desktop, tablet, and mobile viewport previews built in.
- Mailables outside `app/Mail` can be registered via the add-on's facade.
- Role-based access control using Statamic's standard permissions system.

---

*Source: [Laravel News — Statamic Mailables Viewer Previews Laravel Emails in the Control Panel](https://laravel-news.com/statamic-mailables-viewer)*

- [Statamic](https://www.msaied.com/public/articles?search=Statamic)
- [Laravel](https://www.msaied.com/public/articles?search=Laravel)
- [Email](https://www.msaied.com/public/articles?search=Email)
- [Add-on](https://www.msaied.com/public/articles?search=Add-on)
- [Developer Tools](https://www.msaied.com/public/articles?search=Developer%20Tools)

 Frequently asked questions 
---------------------------

  Does Mailables Viewer require dedicated preview routes in web.php?No. The add-on auto-discovers your Laravel mailable classes and renders them directly inside the Statamic Control Panel under Utilities → Mailables, with no preview routes or extra configuration required.

   Can I preview mailables that are stored outside the default app/Mail directory?Yes. You can register additional directories or namespaces using the add-on's facade, and those mailables will appear alongside the ones discovered in app/Mail.

   How does sending a test email work for queued mailables?Mailables Viewer uses sendNow() to dispatch the mailable immediately, bypassing the queue. This lets you verify the rendered output in a real inbox without needing a running queue worker.

   ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)About the author
----------------

[Mohamed Said](https://www.msaied.com/public#person)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

[About](https://www.msaied.com/public#about) [GitHub ↗](https://github.com/EG-Mohamed) [LinkedIn ↗](https://www.linkedin.com/in/msaiedm/) [WhatsApp ↗](https://wa.me/201094619204) [Email Address ↗](mailto:hello@msaied.com) [My CV ↗](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)  

   [Previous articleAdvanced Authorization in Laravel: Gates, Policies, and Response-Based Access Control](https://www.msaied.com/public/articles/advanced-authorization-in-laravel-gates-policies-and-response-based-access-control-4) [Next articleAgent Run Observability in Laravel AI SDK 0.11](https://www.msaied.com/public/articles/agent-run-observability-in-laravel-ai-sdk-011)  

   On this page
-------------

1. [Stop Hacking Together Email Preview Routes](#stop-hacking-together-email-preview-routes)
2. [How It Works](#how-it-works)
3. [Inspecting the Envelope](#inspecting-the-envelope)
4. [Sending Test Emails](#sending-test-emails)
5. [Permissions](#permissions)
6. [Why This Matters for Laravel Developers](#why-this-matters-for-laravel-developers)
7. [Key Takeaways](#key-takeaways)

 ###  Have a technical challenge?

 Tell me what you’re building. I reply within two working days.

[Start a conversation](https://www.msaied.com/public#contact) 

   Related articles
-----------------

 [ ![](https://cdn.msaied.com/740/cce86edc21eddcbdd2f2454fadaf9c70.png)  · 3 min read### The Pipeline Pattern in Laravel: Custom Pipelines Beyond Middleware

5 Oct 2026 ](https://www.msaied.com/public/articles/the-pipeline-pattern-in-laravel-custom-pipelines-beyond-middleware-1) [ ![](https://cdn.msaied.com/739/2d6897fdcdcf090613f96f72a64b8a78.png)  · 4 min read### MySQL Full-Text Search in Laravel: Indexes, Relevance Scoring, and Boolean Mode

4 Oct 2026 ](https://www.msaied.com/public/articles/mysql-full-text-search-in-laravel-indexes-relevance-scoring-and-boolean-mode) [ ![](https://cdn.msaied.com/738/073696a3fefe18bec825beec5ac658f5.png)  · 4 min read### Laravel Queue Rate-Limited Middleware: Throttling Jobs Without Losing Work

4 Oct 2026 ](https://www.msaied.com/public/articles/laravel-queue-rate-limited-middleware-throttling-jobs-without-losing-work) 

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://www.msaied.com/public#contact) 

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://www.msaied.com/public)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://www.msaied.com/public/sitemap.xml)
