leonis / laravel-aliyun-directmail
This package is abandoned and no longer maintained.
No replacement package was suggested.
1.1.1
2018-11-05 09:33 UTC
Requires
- leonis/aliyun-php-sdk-dm: ~1.0
This package is auto-updated.
Last update: 2020-02-05 23:10:51 UTC
README
laravel-aliyun-directmail
Aliyun DirectMail for Laravel5
安装
composer require leonis/laravel-aliyun-directmail
配置
- Laravel 5.5 以下版本添加下面一行到 config/app.php 中 providers 部分:
Leonis\DirectMail\DirectMailServiceProvider::class,
- 发布配置文件:
$ php artisan vendor:publish --provider='Leonis\DirectMail\DirectMailServiceProvider'
使用
$mail = new \Leonis\DirectMail\DirectMail(); try { $mail->to('yangliulnn@163.com')->subject('welcome')->view(view('welcome'))->send(); } catch (Exception $exception) { // TODO something... }
License
MIT