Download the PHP package creagia/laravel-web-mailer without Composer
On this page you can find all versions of the php package creagia/laravel-web-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creagia/laravel-web-mailer
More information about creagia/laravel-web-mailer
Files in creagia/laravel-web-mailer
Package laravel-web-mailer
Short Description Laravel Web Mailer
License MIT
Homepage https://github.com/creagia/laravel-web-mailer
Informations about the package laravel-web-mailer
Laravel Web Mailer
This package contains a web mailer which will catch all the sent emails. Then, you can view it visiting the route /web-inbox
.
The emails will be stored as a file in the storage folder.
Support us
Requirements
This package requires PHP 8.1 and Laravel 9. If you need compatibility with older versions, check the alternatives section.
Installation
You can install the package via composer:
After that, open your config/mail.php
file and add the web mailer entry in the mailers
configuration array.
Finally, you can enable the web mailer setting the defined mailer in your .env file:
We recommend you to publish the configuration file to be able to perform some customizations
Inbox URL
The default URL to view the emails is /web-inbox
. You can change it, adding the below entry to your .env file:
Route protection
By default, the inbox URL is authorized for everybody who has the link. If you need to add some protection, you can modify the middleware
array on the config/web-mailer.php
file.
Delete all stored emails
Delete stored emails older than N days
You can run or schedule the command laravel-web-mailer:cleanup
to delete the emails older than N days. By default, it will delete the emails older than 7 days. You can customize the number of days changing the delete_emails_older_than_days
parameter on the config/web-mailer.php
file.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Alternatives
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Xavier Muntané
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-web-mailer with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0|^10.0|^11.0
symfony/mime Version ^6.1|^7.0