Open Source/laravel-local-mailer/Overview
laravel-local-mailer
Mail transport for local testing of sending messages
Overview
Each developer needs to check the sending of email messages during development. Most of them have their own ways — using Gmail, Mailtrap, Laravel logs, etc.
This package creates its own mail transport, saving emails as daily logs, with the ability to view them.
Installation
The package can be installed via composer:
composer require yzen.dev/laravel-local-mailerIn the config config/mail.php add a new transport:
return [ //... 'mailers' => [ //... 'local-mailer' => [ 'transport' => 'local-mailer' ], ]]Now you can include this transport in the env:
MAIL_MAILER=local-mailerUsage
The page for viewing is available at {HOST}/local-mailer.
Here you can view the log for any date. For each log, the full email will be displayed — the title, to, contents of the letter (html page), attached files, etc.