PHPackages                             cherrytools/directmail - 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. cherrytools/directmail

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

cherrytools/directmail
======================

aliyun direct mail for laravel.

2.0(8y ago)41701MITPHPPHP &gt;=7.0.0

Since Nov 28Pushed 8y agoCompare

[ Source](https://github.com/XueTools/Aliyun-DirectMail)[ Packagist](https://packagist.org/packages/cherrytools/directmail)[ RSS](/packages/cherrytools-directmail/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Aliyun Direct Mail For Laravel 5
================================

[](#aliyun-direct-mail-for-laravel-5)

使用阿里云的邮件推送（[DirectMail](https://www.aliyun.com/product/directmail)）发送邮件，

仅支持单一发信接口（[SingleSendMail](https://help.aliyun.com/document_detail/29444.html?spm=5176.doc29435.2.3.pHDCrc)）。

安装
--

[](#安装)

> 在Laravel 5.4或更低版本，请使用

```
composer require cherrytools/directmail:~1.0
```

> 在Laravel 5.5或更高版本，请使用

```
composer require cherrytools/directmail:~2.0
```

配置
--

[](#配置)

在 `.env` 中配置您的密钥， 并修改邮件驱动为 `directmail`

```
MAIL_DRIVER=directmail
DIRECT_MAIL_KEY=            # AccessKeyId
DIRECT_MAIL_SECRET=         # AccessKeySecret
```

您也可以进行一些额外的配置，具体请参考阿里云邮件推送[官方文档](https://help.aliyun.com/document_detail/29444.html?spm=5176.doc29435.2.3.pHDCrc)

```
DIRECT_MAIL_REPLAY_TO=      # ReplyToAddress
DIRECT_MAIL_ADDRESS_TYPE=   # AddressType
DIRECT_MAIL_REGION=         # RegionId
DIRECT_MAIL_CLICK_TRACE=    # ClickTrace
```

在Laravel 5.5或更高版本中，该软件包将被自动发现，您可以跳过以下步骤。

如果使用Laravel 5.4或更低版本，则需要将ServiceProvider添加到 `config/app.php` 中的 `providers` 数组中

```
Cherry\DirectMail\DirectMailTransportProvider::class,
```

使用
--

[](#使用)

详细用法请参考 laravel 文档：

>

#### 演示

[](#演示)

```
Mail::raw('Hello World!', function ($message) {
    $message->from('email', 'alias');
    // 单个收件人
    $message->to('email', 'alias');
    // 多个收件人
    $message->to(['email'=>'alias', 'email'=>'alias']);
    $message->subject('Hello World');
});
```

贡献
--

[](#贡献)

-

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3091d ago

Major Versions

1.0 → 2.02017-11-28

PHP version history (2 changes)1.0PHP &gt;=5.5.9

2.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![lengqy](https://avatars.githubusercontent.com/u/29800287?v=4)](https://github.com/lengqy "lengqy (8 commits)")

---

Tags

directmail

### Embed Badge

![Health badge](/badges/cherrytools-directmail/health.svg)

```
[![Health](https://phpackages.com/badges/cherrytools-directmail/health.svg)](https://phpackages.com/packages/cherrytools-directmail)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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