PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Andrey Iatsenko   Laravel Local Email Sender   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Local Email Sender
Send email messages to logs that can be viewed
Author: By
Last change:
Date: 7 months ago
Size: 1,846 bytes
 

Contents

Class file image Download

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