Mail Preview Laravel Driver

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:

Themsaid\MailPreview\MailPreviewServiceProvider::class

Finally, change your mail driver to preview:

MAIL_DRIVER=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.


Filed in: Laravel Packages / Email


Newsletter

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

Laravel News Partners

Laravel Jobs

Senior Developer for a Algo Strategy Marketplace Startup
Mumbai
Tradetron
Software Engineer
Remote
Quartzy
Laravel Developer
South Florida (Remote considered)
Marine Connection
Senior Software Engineer - LAMP/PHP/MySQL/Laravel
Los Angeles / Remote
Ranker
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
In-house Laravel Developer.
Gold Coast / Australia
MXstore
Laravel Developer
Oak Brook, IL
Tidal Commerce