承接 actinity/mailtrapper 相关项目开发

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

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

actinity/mailtrapper

最新稳定版本:2.4

Composer 安装命令:

composer require actinity/mailtrapper

包简介

Mailtrapper for Laravel

README 文档

README

This is a package for Laravel and Vue that captures emails generated by the framework and renders them into an onscreen email viewer.

Think Mailtrap, but inline within the application itself, with no need to login to a separate service.

What it does

Overrides the default mail transport in Laravel to save rendered emails to a database table.

The Recipient, Subject and HTML body are all captured.

The Vue component adds a mail icon at the top right, polls every few seconds for recent messages, and flashes when a new message is available.

Clicking on the icon opens an onscreen inbox. Because all emails are captured, this includes all emails generated to any recipient.

Requirements for use

  • Laravel 9+
  • Vue 3+
  • axios
  • A logged in user accessible at auth()->user() [DEFAULT]

Authentication

By default the library requires an authenticated user and uses the web middleware group. You can customise this by publishing the config and modifying the middleware to suit your needs.

Installation

composer require actinity/mailtrapper

Import the component from vendor/actinity/mailtrapper/src/components/Mailtrapper.vue

Add the <mailtrapper></mailtrapper> tag to a view or your main SPA component.

Run php artisan migrate to set up the table

Set MAIL_MAILER=trapper in your .env

Emptying the database

If you define a gate called mailtrapper:empty, the interface will include an 'Empty' button for matching users that allows them to empty the shared mailbox.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-07-08