ognjen/laravel-async-mail
最新稳定版本:v3.0.0
Composer 安装命令:
composer require ognjen/laravel-async-mail
包简介
Send async mails from Laravel
README 文档
README
Sends async mails from Laravel.
As Laravel documentation says:
Since sending email messages can drastically lengthen the response time of your application, many developers choose to queue email messages for background sending. Laravel makes that easy using its built-in unified queue API.
This aproach is different, it leverages "Symfony\Component\Process\Process" class to create separate PHP process and sends an "Illuminate\Mail\Mailable" using artisan command.
Install
Require package with Composer:
composer require ognjen/laravel-async-mail:v3.0.0
Usage example
<?php namespace App\Observers; use App\Order; use App\Mail\OrderCreated; use Ognjen\Laravel\AsyncMail; class OrderObserver { public function created(Order $order) { AsyncMail::send(new OrderCreated($order)); } }
统计信息
- 总下载量: 4.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-11