承接 smajohusic/laravel-mail-logger 相关项目开发

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

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

smajohusic/laravel-mail-logger

最新稳定版本:1.0.1

Composer 安装命令:

composer require smajohusic/laravel-mail-logger

包简介

Listens to Mail send event, and saves the information to database as backup/log

README 文档

README

Latest Version on Packagist Software License Build Status Total Downloads

Introduction

Mail logger has one purpose, save mail before they are sent from your app. This enables you to have backup of mail and a overview if something goes wrong.

This package listens to the MessageSending event fired from Mailer. The listener will dispatch a job, then save the needed form information, event, route and recipient to the database.

This package also supports auto deleting. You can define how long the the app should keep the logs by defining days in the config file.

Installation

Laravel 5.5 +

  1. composer require smajohusic/laravel-mail-logger

  2. Package is automatically discovered and registered via Laravel's automatic service provider registration.

Laravel 5.4 or earlier

  1. composer require smajohusic/laravel-mail-logger
  2. Add Smajo\MailLogger\MailLogServiceProvider::class to providers in app.php
  3. Execute command: php artisan vendor:publish --provider="Smajo\MailLogger\MailLogServiceProvider"
  4. Run: php artisan migrate to generate the mail-logger table

Requirements

Cron job

To enable auto-deleting you will need to set up a cron job that runs

php artisan schedule:run

Usage

mailLogger.php config

By default the auto-deleting is disabled. To enable it set

'enableAutoDeletion' => true,

You can set how long the logs should be stored in the database by giving amount in days.

'keepLogsForDays' => 30,

To make it easier to find mails, you can define all "to" fields your app uses in forms. This will then find the user e-mail in the request, and save it as the "sender" field.

'toEmailAddresses' => [
    'email',
    'e-mail',
    'to',
]

统计信息

  • 总下载量: 1.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固