tjvb/laravel-mail-catchall
Composer 安装命令:
composer require tjvb/laravel-mail-catchall
包简介
Catch all mail in Laravel and redirect it to a configured email address
README 文档
README
Why
The target is to catch all the mail send by Laravel and send it to a configured email address. We found it useful to use it for acceptance environments where the client can check all the mail that is send by the application. This also catch the email that is send by a queue runner or an artisan command.
Alternative
If you just want to see the mail directly and don't use a queue or artisan task to send the mail. You can use the Laravel Mail Preview Driver from Mohamed Said https://github.com/themsaid/laravel-mail-preview
Installation
You can install the Laravel Mail Catcher with composer with the command: composer require tjvb/laravel-mail-catchall
Manual register the service provider.
If you disable the package discovery you need to add TJVB\MailCatchall\MailCatchallServiceProvider::class, to the providers array in config/app.php
Publish the config file
Publish the config file with php artisan vendor:publish --provider="TJVB\MailCatchall\MailCatchallServiceProvider"
Config
Set the MAILCATCHALL_ENABLED env variable (most used version is to set it in the .env file) to true
Set the MAILCATCHALL_RECEIVER env variable with the email address of the receiver.
Optional config
You have more options to change in the mailcatchall.php config file. You can enable or disable the appending of the receivers to the HTML or text mails.
The package blade views are published to your views directory (resources/views/vendor/mailcatchall) so that is the place to change the displaying.
Changelog
We (try to) document all the changes in CHANGELOG so read it for more information.
Version compatibility
| Laravel Mail Catchall | Laravel | PHP |
|---|---|---|
| 1.0 | 5.0 - 5.6 | 7.0 - 7.2 |
| 1.1 | 5.0 - 5.7 | 7.0 - 7.2 |
| 2.0 | 5.7 - 5.8 | 7.2 |
| 2.1 | 5.7 - 5.8 | 7.2 - 7.3 |
| 2.2 | 5.7 - 6 | 7.2 - 7.3 |
| 2.3 | 5.7 - 7 | 7.2 - 7.4 |
| 3.0 | 6 - 8 | 7.3 - 7.4 |
| 3.1 | 6 - 8 | 7.3 - 8.0 |
| 3.2 | 6 - 8 | 7.3 - 8.1 |
| 4.0 | 9 | 8.0 - 8.1 |
| 4.1 | 9 | 8.0 - 8.2 |
| 4.2 | 9 - 10 | 8.0 - 8.2 |
| 4.3 | 9 - 10 | 8.0 - 8.3 |
| 4.4 | 9 - 11 | 8.0 - 8.3 |
| 4.5 | 9 - 11 | 8.0 - 8.4 |
| 4.6 | 9 - 12 | 8.0 - 8.4 |
| 4.7 | 9 - 12 | 8.0 - 8.5 |
Contributing
You are welcome to contribute, read about it in CONTRIBUTING
License
The MIT License (MIT). Please see License File for more information.
tjvb/laravel-mail-catchall 适用场景与选型建议
tjvb/laravel-mail-catchall 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 146.9k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 12 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mail」 「laravel」 「tjvb」 「catchall」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tjvb/laravel-mail-catchall 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tjvb/laravel-mail-catchall 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tjvb/laravel-mail-catchall 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Get the current git hash from your project, show it in your blade or add it to your logs.
Get the current git hash from your project.
Receive webhooks from GitLab and store the data in the database.
Save the GitLab data in your Laravel project
Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.
Mail libraries used by Zimbra Api
统计信息
- 总下载量: 146.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-19