Ai
4 Star 1 Fork 0

Gitee 极速下载/tipask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sdfsky/tipask
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SendEmail.php 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
sdfsky 提交于 2019-10-15 16:10 +08:00 . add v3.5 featrue
<?php
namespace App\Jobs;
use App\Mail\GlobalMail;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Mail;
class SendEmail implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $email;
protected $blade;
protected $subject;
protected $data;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($email, $subject, $data=[], $blade)
{
//
$this->email = $email;
$this->blade = $blade;
$this->subject = $subject;
$this->data = $data;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
//
Log::info('SendEmail_to_'.$this->email.'_start');
Mail::to($this->email)->send(new GlobalMail($this->blade, $this->subject, $this->data));
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mirrors/tipask.git
git@gitee.com:mirrors/tipask.git
mirrors
tipask
tipask
master

搜索帮助