malcolmknott/emailtester
Composer 安装命令:
composer require malcolmknott/emailtester
包简介
Send test emails using Artisan command
README 文档
README
This composer package lets you easily send test email with a Laravel Artisan command.
Installation
Begin by pulling in the package through Composer.
composer require malcolmknott/emailtester
Next, if using Laravel 5, include the service provider within your config/app.php file.
'providers' => [ Malcolmknott\Emailtester\EmailtesterServiceProvider::class, ];
Configuration
You will need to update the mail settings in your .env file before you can send email.
Optional, publish the config file to update max sends per command, the default max is 10 per command. The last parameter of the artisan command is how many email to send.
php artisan vendor:publish --provider="Malcolmknott\Emailtester\EmailtesterServiceProvider" --tag="config"
Usage
Artisan command
php artisan send-email example@example.com 1
Scheduled Job
$schedule->command('send-email example@example.com 1')->twiceDaily(9, 21);
Email Template
Publish the view file to add your own message.
php artisan vendor:publish --provider="Malcolmknott\Emailtester\EmailtesterServiceProvider" --tag="views"
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-27