承接 binarybuilds/laravel-mail-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

binarybuilds/laravel-mail-manager

Composer 安装命令:

composer require binarybuilds/laravel-mail-manager

包简介

A Laravel mail manager to record and re-send all outgoing emails.

README 文档

README

A laravel package to easily resend system generated emails without going through entire application flow.

This package does not provide any UI. If you are looking for a UI wrapper, See laravel nova mail manager

How It Works?

This package will store all outgoing emails inside database and will track their status if they are successfully sent or not.

You can resend all unsent emails, Or resend specific emails if your client requests you to resend an email.

This package will only mark the status of emails whether they are sent or not. This package cannot determine whether the sent mail reached the user's email. So If a mail is marked as unsent, It means an error occured while sending the mail. It might be due to ratelimit on the email sender, Invalid email credentials, etc. Do not assume the status of sent as a successful email delivery.

Installation

This package can be installed using composer.

composer require binarybuilds/laravel-mail-manager

Next you must register the package's service provider by adding the below line to providers array inside config/app.php file.

    'providers' => [
        //
        \BinaryBuilds\LaravelMailManager\LaravelMailManagerServiceProvider::class
    ]

Conflicts With Laravel Telescope

This package currently conflicts with laravel telescope. If you are using laravel telescope in your application, Make sure you register this package service provider after the telescope service provider is registered.

If you are registering telescope using config/app.php file, Then add the service provider after the telescope service provider as shown below.

    'providers' => [
        //
        App\Providers\TelescopeServiceProvider::class,
        \BinaryBuilds\LaravelMailManager\LaravelMailManagerServiceProvider::class
    ]

If you are registering telescope manually using AppServiceProvider.php file, Then register this package service provider after the telescope service provider is registered as shown below

$this->app->register(TelescopeServiceProvider::class);
$this->app->register(LaravelMailManagerServiceProvider::class);

Next, Publish the package configuration file by running

php artisan vendor:publish --tag=laravel-mail-manager-config

Run migrations to create the table required to store the emails.

php artisan migrate

This will create a table mail_manager_mails. You can configure the table name using the published configuration file located in config/mail_manager.php

Usage

By default this package records all the outgoing mailables and notifications.

Ignoring Mailables And Notifications From Being Recorded

If you wish to ignore certain mailables or notifications from being recorded, You can add them to ignore array in config/mail_manager.php file.

Resending Mails

You can resend any mail by using the following command

php artisan mail-manager:resend-mail 1

Here 1 represents the ID of the mail to resend.

Resending All Un-Sent Mails

If you wish to resend all the mails which are unsent, You can use the following artisan command

php artisan mail-manager:resend-unsent-mail

Since this command will only resend the mails which are failed to send, You can safely schedule this command to resend your failed emails.

$schedule->command('mail-manager:resend-unsent-mail')->daily();

Deleting Older Entries

Since this package records all outgoing emails, Your database table will start growing quickly. To automatically delete older entires, This package provides an artisan command to schedule deletion of older entries.

You can schedule deletion of older entries by adding the following line to your scheduler.

$schedule->command('mail-manager:prune --hours=72')->daily();

This will delete all entries which are older than 72 hours.

Contributing

Thank you for considering contributing to Laravel mail manager! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.

License

This package is open-sourced software licensed under the MIT license.

binarybuilds/laravel-mail-manager 适用场景与选型建议

binarybuilds/laravel-mail-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40.26k 次下载、GitHub Stars 达 24, 最近一次更新时间为 2020 年 04 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「mail」 「email」 「debugging」 「monitoring」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 binarybuilds/laravel-mail-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 binarybuilds/laravel-mail-manager 我们能提供哪些服务?
定制开发 / 二次开发

基于 binarybuilds/laravel-mail-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 40.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 24
  • 点击次数: 23
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 0
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-05