PHPackages                             objui/phpmail - 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. objui/phpmail

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

objui/phpmail
=============

This is a tool for sending email to PHP

v1.0(5y ago)019[1 PRs](https://github.com/ruixuange/phpmail/pulls)MITPHPPHP &gt;=7.0

Since Feb 3Pushed 5y agoCompare

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

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

### 说明

[](#说明)

使用PHP开发，基于phpmailer整合的一个发送邮件工具

### 安装

[](#安装)

```
composer require objui/phpmail

```

使用示例

```
require '../vendor/autoload.php';
use objui\phpmail\Email;
$config = [
        'host'           => 'smtp.qq.com',                  //服务器smtp.qq.com  smtp.163.com
        'port'           => '465',                          //邮件服务端口
        'username'       => '',            //代理邮件
        'password'       => '',             //授权码（注意不是密码）
        'from_email'     => '',            //发送人邮箱
        'from_name'      => 'objui',                       //发送人姓名
];

$email = new Email($config);

$sendata = [
    'subject'  => '服务器报警通知',
    'to_email'   => 'objui@qq.com',
    'content'    => '服务器连接出错，请及时处理',
];

$email->send($sendata);

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

1976d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d05573a6a8d84bba1e9c4bad151f0c6a8316e81e08cc0c5fbf5cd87392f40838?d=identicon)[objui](/maintainers/objui)

### Embed Badge

![Health badge](/badges/objui-phpmail/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[getkirby/cms

The Kirby core

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

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25214.3k](/packages/ivantcholakov-codeigniter-phpmailer)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)

PHPackages © 2026

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