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

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

draguo/directmail
=================

阿里云邮件发送

1.0(8y ago)1463↓75%1MITPHP

Since Jun 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/draguo/directmail)[ Packagist](https://packagist.org/packages/draguo/directmail)[ RSS](/packages/draguo-directmail/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

阿里云发送邮件
=======

[](#阿里云发送邮件)

安装
--

[](#安装)

```
    composer require draguo/directmail
```

使用
--

[](#使用)

```
$body = "这是标题";
$mail = new \Draguo\DirectMail\DirectMail($accessKey, $secret);
$result = $mail->send([
    'from' => '', // 发信地址 AccountName
    'to' => '', // 多个地址可用逗号分隔，最多100个
    'name' => '', // 发件人昵称  FromAlias
    'subject' => '这个是邮件的主题', // Subject
    'body' => $body, // html or text
    'trace' => '' // 是否开启数据追踪功能, 1 或 0
]);

echo $result;
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

2946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72f9a53e815a82dcedc10a1e865bc34defeed186b7a0b931d67885d6b6b251b5?d=identicon)[draguo](/maintainers/draguo)

---

Top Contributors

[![draguo](https://avatars.githubusercontent.com/u/12272760?v=4)](https://github.com/draguo "draguo (3 commits)")

---

Tags

aliyunsendmail

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k36](/packages/neuron-core-neuron-ai)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[guanguans/notify

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

686111.2k8](/packages/guanguans-notify)

PHPackages © 2026

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