PHPackages                             yonghua4413/smtp - 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. yonghua4413/smtp

ActiveProject

yonghua4413/smtp
================

邮件发送 smtp

v0.03(8y ago)056MITPHPPHP &gt;=5.4.0

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yonghua4413/smtp)[ Packagist](https://packagist.org/packages/yonghua4413/smtp)[ RSS](/packages/yonghua4413-smtp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

smtp
====

[](#smtp)

smtp邮件 可用于阿里dm

```
$ composer require yonghua4413/smtp

```

```
//引入
use YYHemail\smtp;

$mailto='接受者邮箱';
$mailsubject="邮件标题";
$mailbody= '邮件内容';
$smtpserver     = "smtpdm.aliyun.com";
$smtpserverport = 80;#端口

$smtpusermail   = "发信地址";
$smtpuser       = "发信地址";
$smtppass       = "smtp密码";

$mailsubject    = "=?UTF-8?B?" . base64_encode($mailsubject) . "?=";
$mailtype       = "HTML";
$smtp           = new smtp($smtpserver, $smtpserverport, true, $smtpuser, $smtppass);
$smtp->debug    = FALSE;
$smtp->sendmail($mailto, $smtpusermail, $mailsubject, $mailbody, $mailtype);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

3

Last Release

3021d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

stmp

### Embed Badge

![Health badge](/badges/yonghua4413-smtp/health.svg)

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

PHPackages © 2026

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