| Package Data | |
|---|---|
| Maintainer Username: | thomaskerin |
| Maintainer Contact: | tianzhao.li@bitmain.com (Tianzhao Li) |
| Package Create Date: | 2016-12-15 |
| Package Last Update: | 2017-02-20 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-30 03:14:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 65 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 4 |
| Total Forks: | 3 |
| Total Open Issues: | 0 |
使用阿里云的 DirectMail 发送邮件。
当前实现仅支持单一发信接口。
使用 composer 安装文件
composer require btccom/aliyun-direct-mail
发布配置文件
php artisan vendor:publish --provider='BTCCOM\DirectMail\AliyunDirectMailServiceProvider'
在 config/directmail.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' => [
...
BTCCOM\DirectMail\AliyunDirectMailServiceProvider::class,
...
],