PHPackages                             tossboy/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. tossboy/email

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

tossboy/email
=============

邮箱发送

1.1(7y ago)0942Apache-2.0PHPPHP &gt;=5.4.0

Since Jul 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ToSsBoYs/email)[ Packagist](https://packagist.org/packages/tossboy/email)[ RSS](/packages/tossboy-email/feed)WikiDiscussions master Synced 3w ago

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

email
=====

[](#email)

> 基于phpmail的邮箱发送类

安装
--

[](#安装)

> composer require tossboy/email dev-master

使用方法
----

[](#使用方法)

```
use Email\Mail;
$email = new Mail($config=[
            'email' => $email,
            'password' => $password,
            'host' => '163',//163 qq ....
        ]);
$status = $email->sendMail('xun0726@qq.com','数据库备份提醒',date('Y-m-d H:i:s',time()).'备份成功');
var_dump($status);//成功返回true 失败返回错误信息
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

2917d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6947855?v=4)[ToSsBoY](/maintainers/ToSsBoY)[@tossboy](https://github.com/tossboy)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k13.0M215](/packages/simplesamlphp-simplesamlphp)[getkirby/cms

The Kirby core

1.5k584.8k447](/packages/getkirby-cms)[ivantcholakov/codeigniter-phpmailer

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25214.2k](/packages/ivantcholakov-codeigniter-phpmailer)[vernes/yiimailer

Yii extension for sending emails with layouts using PHPMailer

81123.2k](/packages/vernes-yiimailer)

PHPackages © 2026

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