| Package Data | |
|---|---|
| Maintainer Username: | kevinzheng |
| Maintainer Contact: | realkvz@gmail.com (Kevin Zheng) |
| Package Create Date: | 2016-11-23 |
| Package Last Update: | 2016-11-23 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:07:50 |
| Package Statistics | |
|---|---|
| Total Downloads: | 97 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
使用阿里云的 DirectMail 发送邮件。
当前实现仅支持单一发信接口。
使用 composer 安装文件
composer require kevinzheng/laravel-directmail
在 config/services.php 中添加如下配置:
...
'directmail' => [
'app_key' => env('DIRECT_MAIL_APP_KEY'),
'app_secret' => env('DIRECT_MAIL_APP_SECRET'),
'region' => 'cn-beijing',
'account' => [
'alias' => env('DIRECT_MAIL_ACCOUNT_ALIAS'),
'name' => env('DIRECT_MAIL_ACCOUNT_NAME'),
]
],
...
具体配置含义请参考官方文档。
请根据需要在.env中创建环境配置。
修改 config/mail.php 中的 driver 为 directmail(或者 .env 中的 MAIL_DRIVER)。
修改 config/app.php,在providers字段中添加:
'providers' => [
...
KVZ\DirectMail\AliyunDirectMailServiceProvider::class,
...
],