PHPackages                             qingbing/pf-tools-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. qingbing/pf-tools-mail

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

qingbing/pf-tools-mail
======================

工具——php对外邮件的发送

1.0.1(6y ago)0432MITPHP

Since May 29Pushed 6y agoCompare

[ Source](https://github.com/qingbing/pf-tools-mail)[ Packagist](https://packagist.org/packages/qingbing/pf-tools-mail)[ Docs](http://www.phpcorner.net)[ RSS](/packages/qingbing-pf-tools-mail/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (2)Used By (2)

pf-tools-mail
=============

[](#pf-tools-mail)

描述
--

[](#描述)

工具——php对外邮件的发送

注意事项
----

[](#注意事项)

- mail 邮件发送配置参考"qingbing/config",配置在"conf/email.php"中
- mail 配置的属性可自行参考"\\Tools\\Email"的公有属性，以下为其中一种方式：

```
return [
    'mail_addr' => 'PhpCorner',
    'mail_pass' => 'xxxxxx',
];
```

使用方法
----

[](#使用方法)

```
$to = 'to@qq.com';
$subject = 'phpcorner.net 邮件测试';
$body = '测试 phpcorner.net 邮件';
$cc = 'xxx@qq.com';
$bcc = 'xxx@163.com';
$mail = \Tools\Email::getInstance(Config::getInstance('email')->getAll());
$status = $mail->sendMail($to, $subject, $body, $cc, $bcc);
if ($status) {
    echo 'success';
} else {
    var_dump($mail->getErrors());
}
```

====== 异常代码集合 ======
--------------------

[](#-异常代码集合-)

异常代码格式：1026 - XXX - XX （组件编号 - 文件编号 - 代码内异常）

```
 - 102600101 : 邮件中转地址 ({mail}) 无效
 - 102600102 : 邮件中转地址 ({mail}) 无效
 - 102600103 : 中转邮件地址密码不能为空

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

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

Unknown

Total

1

Last Release

2541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9379d2ee4885074de75faa3fa12970614186826f762df3c4aa0905dc1ff3b513?d=identicon)[qingbing](/maintainers/qingbing)

---

Top Contributors

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

---

Tags

phpmailemailsmtpEmail

### Embed Badge

![Health badge](/badges/qingbing-pf-tools-mail/health.svg)

```
[![Health](https://phpackages.com/badges/qingbing-pf-tools-mail/health.svg)](https://phpackages.com/packages/qingbing-pf-tools-mail)
```

###  Alternatives

[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)[henrique-borba/php-sieve-manager

A modern (started in 2022) PHP library for the ManageSieve protocol (RFC5804) to create/edit Sieve scripts (RFC5228). Used by Cypht Webmail.

23125.7k2](/packages/henrique-borba-php-sieve-manager)[benhall14/php-imap-reader

A PHP class that makes working with IMAP in PHP simple.

3516.6k](/packages/benhall14-php-imap-reader)[juanparati/brevosuite

Complete Brevo integration with Laravel

1010.8k](/packages/juanparati-brevosuite)[beebmx/kirby-courier

Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.

403.0k2](/packages/beebmx-kirby-courier)

PHPackages © 2026

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