Join 25,000+ Laravel Developers and join the free Laravel Newsletter
Mail Preview Laravel Driver
Laravel Packages / updated: January 19, 2017

Mail Preview Laravel Driver

Mohamed Said has created a new mail driver for Laravel that converts emails to files.

Installation is simple. Just require the package:

composer require themsaid/laravel-mail-preview

Add the service provider:


Finally, change your mail driver to preview:


Now when you send emails from your Laravel app the rendered HTML and EML will be saved to the storage/email-previews folder. This way you can open it through various mail clients, your editor, or the browser for the HTML version.

This appeared first on Laravel News
Laravel News Partners


Join the weekly newsletter and never miss out on new tips, tutorials, and more.