PHPackages                             honray/tp5-email - 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. honray/tp5-email

ActiveLibrary

honray/tp5-email
================

email package for thinkphp5

v1.0(8y ago)54251Apache-2.0PHP

Since Sep 26Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

honray-email
============

[](#honray-email)

thinkphp5 系统邮件发送函数

安装
--

[](#安装)

> composer require honray/tp5-email

\##使用

\#####执行方法send\_email($config, $to, $name, $subject, $body, $attachment = null)

- 功能：系统邮件发送函数
- @param string $config
- 邮箱配置
- 'config' =&gt; array (
- ```
      'smtp_host' => 'smtp.exmail.qq.com', SMTP 服务器

    ```
- ```
      'smtp_port' => '25',                 SMTP服务器的端口号

    ```
- ```
      'from_email' => 'xxxx@xxx.com',      设置发件人地址

    ```
- ```
      'from_name' => 'xxxx',               设置发件人名称

    ```
- ```
      'smtp_user' => 'xxx@xxxx.com',       SMTP服务器用户名

    ```
- ```
      'smtp_pass' => 'xxxx',               SMTP服务器密码

    ```
- ```
      'reply_email' => '',

    ```
- ```
      'reply_name' => '',

    ```
- ```
      'test_email' => '',

    ```
- ),
- @param string $to 接收邮件者邮箱
- @param string $name 接收邮件者名称
- @param string $subject 邮件主题
- @param string $body 邮件内容
- @param string $attachment 附件列表namespace

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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

3153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22bf6ed440efe7bb893fe069ae45a3d99da2c135eb41b450225305b7a33b2cf7?d=identicon)[honraytech](/maintainers/honraytech)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/honray-tp5-email/health.svg)

```
[![Health](https://phpackages.com/badges/honray-tp5-email/health.svg)](https://phpackages.com/packages/honray-tp5-email)
```

PHPackages © 2026

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