Statamic Mailables Viewer: Preview Laravel Emails | Mohamed Said        [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://msaied.com) [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles  ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

       [  ](https://github.com/EG-Mohamed)       

 [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

  [ home ](https://msaied.com)    [ articles ](https://msaied.com/articles)    Statamic Mailables Viewer: Preview Laravel Emails in the Control Panel        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)

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

 [  Laravel ](https://msaied.com/articles?category=laravel) [  Composer Pacakge ](https://msaied.com/articles?category=composer-pacakge)  #Statamic   #Laravel   #Email   #Add-on   #Developer Tools  

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

     20 Aug 2026      3 min read    ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said  

       Table of contents

1. [  01   Stop Hacking Together Email Preview Routes  ](#stop-hacking-together-email-preview-routes)
2. [  02   How It Works  ](#how-it-works)
3. [  03   Inspecting the Envelope  ](#inspecting-the-envelope)
4. [  04   Sending Test Emails  ](#sending-test-emails)
5. [  05   Permissions  ](#permissions)
6. [  06   Why This Matters for Laravel Developers  ](#why-this-matters-for-laravel-developers)
7. [  07   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)*

 Found this useful?

          [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fstatamic-mailables-viewer-preview-laravel-emails-in-the-control-panel&text=Statamic+Mailables+Viewer%3A+Preview+Laravel+Emails+in+the+Control+Panel) [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fstatamic-mailables-viewer-preview-laravel-emails-in-the-control-panel) 

 Frequently Asked Questions 
----------------------------

  3 questions  

     Q01  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. 

      Q02  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. 

      Q03  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. 

  Continue reading

 More Articles 
---------------

 [ View all    ](https://msaied.com/articles) 

 [ ![Advanced Authorization in Laravel: Gates, Policies, and Response-Based Access Control](https://cdn.msaied.com/571/e2c97418f4d543aac16e77c5dfd1055a.png) laravel authorization security 

### Advanced Authorization in Laravel: Gates, Policies, and Response-Based Access Control

Go beyond simple boolean gates. Learn how Laravel's response-based authorization lets you return rich denial r...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 20 Aug 2026     3 min read  

  Read    

 ](https://msaied.com/articles/advanced-authorization-in-laravel-gates-policies-and-response-based-access-control-4) [ ![Queue::forward(): Reroute Laravel Queues in One Place](https://cdn.msaied.com/572/c3ded57b390d88d1ceb9bd8570729835.png) Laravel Queues Laravel 13.26 

### Queue::forward(): Reroute Laravel Queues in One Place

Laravel 13.26 introduces Queue::forward(), letting you redirect any queue to a different name, connection, or...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 19 Aug 2026     3 min read  

  Read    

 ](https://msaied.com/articles/queueforward-reroute-laravel-queues-in-one-place) [ ![Laravel Tackle: Run an AI Coding Agent Inside Your Laravel Application](https://cdn.msaied.com/573/8f6b08a47a4bf04ae26b9f03d8e2e697.png) Laravel AI Artisan 

### Laravel Tackle: Run an AI Coding Agent Inside Your Laravel Application

Laravel Tackle brings an AI coding agent directly into your app as Artisan commands. It can read routes, query...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 19 Aug 2026     4 min read  

  Read    

 ](https://msaied.com/articles/laravel-tackle-run-an-ai-coding-agent-inside-your-laravel-application) 

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

Explore

- [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [Contact](https://msaied.com#contact-section)

Connect

- [   hello@msaied.com ](mailto:hello@msaied.com)
- [   +20 109 461 9204 ](tel:+201094619204)

© 2026 Mohamed Said. All rights reserved.

 [  ](https://github.com/EG-Mohamed) [  ](https://www.linkedin.com/in/msaiedm/) [  ](https://wa.me/201094619204) [  ](mailto:hello@msaied.com) [  ](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
