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

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

szjcomo/email
=============

send eamil library

v0.0.2(6y ago)261Apache-2.0PHP

Since Aug 19Pushed 6y ago1 watchersCompare

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

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

### Emailer类使用说明

[](#emailer类使用说明)

- 该组件主要是简单使发送邮件更加简单便捷

---

#### 命名空间：`szjcomo\eamil\Emailer`

[](#命名空间szjcomoeamilemailer)

> 实现了邮件发送

#### 方法列表：

[](#方法列表)

类型方法名称参数说明方法说明staticsend()请查看参数说明发送邮件#### 参数说明：

[](#参数说明)

- 函数原型send($address = null,$subject = '',$content = null,$options = \[\])

参数名称参数类型是否必传备注$addressstring/array是收件人地址，可以是字符串或数组 如果是字符串,用,号隔开$subjectstring是邮件标题$contentstring是邮件内容$optionsarray是/否其它参数 userstring是发件人邮箱地址 passwordstring是发件人邮箱密码 FromNamestring否邮件显示主题 addAttachmentarray否需要发送的附件(key=&gt;value结果 key为附件名称 value为附件地址)#### 使用示例：

[](#使用示例)

###### 一、普通邮件发送

[](#一普通邮件发送)

```
$options = ['user'=>'xxx@qq.com','password'=>'xxxx','FromName'=>'xxx信息科技有限公司发来的邮件'];
Emailer::send('xxx@qq.com,xxx@qq.com','这是一封测试邮件','这是一封测试邮件');
```

###### 二、带附件的邮件发送

[](#二带附件的邮件发送)

```
$options = ['user'=>'xxx@qq.com','password'=>'xxxx','FromName'=>'xxx信息科技有限公司发来的邮件','addAttachment'=>['test.html'=>'./static/index.html']];
Emailer::send('xxx@qq.com,xxx@qq.com','这是一封测试邮件','这是一封测试邮件')
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

2461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef6302d78be1eee555959fb1e9eb43578ad83603c266b0be073ada7fe015528?d=identicon)[szjcomo](/maintainers/szjcomo)

---

Top Contributors

[![luo200619](https://avatars.githubusercontent.com/u/20290887?v=4)](https://github.com/luo200619 "luo200619 (3 commits)")[![szjcomo](https://avatars.githubusercontent.com/u/54160515?v=4)](https://github.com/szjcomo "szjcomo (1 commits)")

### Embed Badge

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

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

###  Alternatives

[ivantcholakov/codeigniter-phpmailer

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25313.9k](/packages/ivantcholakov-codeigniter-phpmailer)[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.4k1](/packages/markguinn-silverstripe-email-helpers)[msp/smtp

SMTP with PHPMailer

2129.4k](/packages/msp-smtp)[nfephp-org/sped-mail

API para geração e envio dos emails relacionados com o SPED.

1123.7k](/packages/nfephp-org-sped-mail)

PHPackages © 2026

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