PHPackages                             btccom/aliyun-direct-mail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. btccom/aliyun-direct-mail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

btccom/aliyun-direct-mail
=========================

阿里云邮件推送 Aliyun Direct Mail for Laravel 5

2653PHP

Since Feb 20Pushed 9y ago4 watchersCompare

[ Source](https://github.com/btccom/aliyun-direct-mail)[ Packagist](https://packagist.org/packages/btccom/aliyun-direct-mail)[ RSS](/packages/btccom-aliyun-direct-mail/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

阿里云邮件推送 Aliyun DirectMail for Laravel 5
=======================================

[](#阿里云邮件推送-aliyun-directmail-for-laravel-5)

使用阿里云的 DirectMail 发送邮件。

当前实现仅支持[单一发信接口](https://help.aliyun.com/document_detail/29444.html)。

安装
--

[](#安装)

1. 使用 `composer` 安装文件

    ```
    composer require btccom/aliyun-direct-mail
    ```
2. 发布配置文件

    ```
    php artisan vendor:publish --provider='BTCCOM\DirectMail\AliyunDirectMailServiceProvider'
    ```
3. 在 `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'),
        ]
    ]

    ```

    具体配置含义请参考[官方文档](https://help.aliyun.com/document_detail/29444.html)。

    建议在`.env`中创建环境配置。
4. 修改 `config/mail.php` 中的 `driver` 为 `directmail`（或者 `.env` 中的 `MAIL_DRIVER`）。
5. 修改 `config/app.php`，在`providers`字段中添加：

    ```
    'providers' => [
        ...
        BTCCOM\DirectMail\AliyunDirectMailServiceProvider::class,
        ...
    ],

    ```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/763cdc5cc50414bacd4ff1080eede79432f7c3cc26a3d8aa9031b1537a8bd734?d=identicon)[thomaskerin](/maintainers/thomaskerin)

![](https://www.gravatar.com/avatar/a6c9e2011d64f385fef4e1208c4f70244daf55f107fa3b46ba08525a4ae88211?d=identicon)[crystalztl](/maintainers/crystalztl)

![](https://avatars.githubusercontent.com/u/6218026?v=4)[tianzhao](/maintainers/tianzhao)[@tianzhao](https://github.com/tianzhao)

---

Tags

aliyundirectmaillaravel

### Embed Badge

![Health badge](/badges/btccom-aliyun-direct-mail/health.svg)

```
[![Health](https://phpackages.com/badges/btccom-aliyun-direct-mail/health.svg)](https://phpackages.com/packages/btccom-aliyun-direct-mail)
```

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
