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

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

mrpck/email
===========

The Email Class Library is a high level wrapper around the SmtpClient.

1.0.3(5y ago)013MITPHPPHP &gt;=5.4.0

Since Apr 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mrpck/email)[ Packagist](https://packagist.org/packages/mrpck/email)[ Docs](https://packagist.org/packages/mrpck/email)[ RSS](/packages/mrpck-email/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)DependenciesVersions (4)Used By (0)

paypal
======

[](#paypal)

The Email Class Library is a high level wrapper around the SmtpClient.

Install
-------

[](#install)

Copy the files under `src/` to your program

OR

```
composer require mrpck/email 1.0.0
```

Usage
-----

[](#usage)

```
use Mrpck\Email\Email;

$mail = (new Email())
    ->from('hello@example.com')
    ->to('you@example.com')
    ->cc('cc@example.com')
    //->bcc('bcc@example.com')
    //->replyTo('fabien@example.com')
    //->priority(Email::PRIORITY_HIGH)
    ->subject('Time for PHP Mailer!')
	//->attach(file_get_contents('test.pdf'), 'test.pdf')
	//->text('Sending emails is fun again!')
    ->html('See Twig integration for better HTML integration!');

if(!$mail->Send()) {
	echo 'Message could not be sent.';
	echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
	echo 'Message has been sent';
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~10 days

Total

3

Last Release

1841d ago

### Community

Maintainers

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

---

Top Contributors

[![mrpck-dev](https://avatars.githubusercontent.com/u/200479216?v=4)](https://github.com/mrpck-dev "mrpck-dev (10 commits)")

---

Tags

mimeemailtlssslsmtpimappop3SmtpClientNetworkCredentialMailAddress

### Embed Badge

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

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

###  Alternatives

[tedivm/fetch

A PHP IMAP Library

5061.2M8](/packages/tedivm-fetch)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[benhall14/php-imap-reader

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

3516.6k](/packages/benhall14-php-imap-reader)[tedivm/dovecottesting

An IMAP Testing Suite

312.2k7](/packages/tedivm-dovecottesting)

PHPackages © 2026

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