mehr-it / laravel-mail-file-driver
There is no license information available for the latest version (1.0.0) of this package.
A Laravel Mail driver that saves messages to disk
1.0.0
2022-12-07 22:01 UTC
Requires
- laravel/framework: ^8.0|^9.0
README
A Laravel Mail driver that saves messages to disk for testing/ci purposes.
Install
composer require mehr-it/laravel-mail-file-driver
Replace default laravel mail manager in /config/app.php
This is usually not required when using package autoloading.
return [ 'providers' => [ # ... #Illuminate\Mail\MailServiceProvider::class, Mmeyer2k\LaravelMailFile\MailFileServiceProvider::class, # ... ], ];
Add to .env
MAIL_MAILER=file
Custom storage location in .env
By default, messages are saved to path returned by sys_get_temp_dir()
.
MAIL_FILE_PATH=/path/to/storage