New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yzen.dev/laravel-local-mailer

2,713 37
Install
composer require yzen.dev/laravel-local-mailer
Latest Version:0.1.0
PHP:^7.4 | ^8.0
Laravel:7 · 8 · 9
License:MIT
Last Updated:Jun 6, 2022
Links: GitHub  ·  Packagist
Maintainer: yzen.dev

Local mailer for laravel

Packagist Version GitHub Workflow Status Coverage License Packagist Downloads Packagist Downloads

Each developer needs to check the sending of email messages during development. Most of them have their own ways - usage gmail, Mailtrap, laravel logs, etc.

This solution will create its own mail transport, saving emails as daily logs, with the ability to view!

image

:scroll: Installation

The package can be installed via composer:

composer require yzen.dev/laravel-local-mailer

In 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-mailer

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.

image

Related Packages

tkeer/mailbase

Catch laravel emails for local development

25,749 104
codewiser/laravel-sendsay-mailer

SendSay mailer for Laravel

1,975 1
clinically-au/laravel-smtp2go

Laravel Mail transport driver for SMTP2Go API

17,931 0
sun/sunmailer

SunMailer helps you to send email easily.

454 3
spatie/laravel-mail-preview

A mail driver to quickly preview mail

593,150 1,292

Version History

Version Released PHP Laravel License
0.1.0 ^7.4 | ^8.0 ^7.0|^8.0|^v9.0 MIT
0.0.1 ^7.4 | ^8.0 ^7.0|^8.0|^v9.0 MIT