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

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

quandi/email
============

email

1.0.0(4y ago)07MITPHP

Since Jan 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/846951943/composerEmail)[ Packagist](https://packagist.org/packages/quandi/email)[ RSS](/packages/quandi-email/feed)WikiDiscussions master Synced today

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

composerEmail
=============

[](#composeremail)

本插件是基于PHPMailer 二次封装的插件，简单实用

安装
--

[](#安装)

composer require quandi/email

使用
--

[](#使用)

```
use Quan\Email\QuanEmail;

//基于框架安装此处可以忽略
require_once './vendor/autoload.php';

$config = [
    'username' => '',   // 发件邮箱名称
    'password' => '',   // 发件邮箱密码
    'mailer' => 'smtp',                 // 邮件驱动, 支持 smtp|sendmail|mail 三种驱动
    'host' => 'smtp.qq.com',            // SMTP服务器地址
    'security' => 'ssl',                // 加密方式 null|ssl|tls, QQ邮箱必须使用ssl
    'port' => 465,                      // SMTP服务器端口号,一般为25
];
$login = QuanEmail::config($config)
    ->from('发送者账号','发送者名称')
    ->to('接收人账号','接收人名称')
    ->title('这是标题')
    ->text('这是纯文本')
	//->addAttachment('./ecfa8de79ef4dbb12af0523a00f44fcb.jpg')
	//->html('嘿嘿，漂亮？哈哈哈')
    ->send();

var_dump($login);exit();
```

### 发给一人

[](#发给一人)

```
->to('接收人账号','接收人名称')
```

### 发给多人

[](#发给多人)

```
->to('接收人账号','接收人名称')
->to('接收人账号','接收人名称')
->to('接收人账号','接收人名称')
```

### 发送文本格式

[](#发送文本格式)

```
->text('这是纯文本')
```

### 发送html格式

[](#发送html格式)

```
->html('嘿嘿，漂亮？哈哈哈')
//注意文件路径需在服务器
```

### 发送附件

[](#发送附件)

```
->addAttachment('./ecfa8de79ef4dbb12af0523a00f44fcb.jpg')
//注意文件路径需在服务器
```

### 作者QQ：846951943 （如有需要可联系）

[](#作者qq846951943--如有需要可联系)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

Unknown

Total

1

Last Release

1641d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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