PHPackages                             pear/mail - 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. pear/mail

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

pear/mail
=========

Class that provides multiple interfaces for sending emails.

v2.0.0(2y ago)415.0M↓14.5%7417BSD-3-ClausePHPPHP &gt;=5.2.1

Since Jan 9Pushed 1mo ago18 watchersCompare

[ Source](https://github.com/pear/Mail)[ Packagist](https://packagist.org/packages/pear/mail)[ Docs](http://pear.php.net/package/Mail)[ RSS](/packages/pear-mail/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (17)

Mail
====

[](#mail)

Class that provides multiple interfaces for sending emails.

PEAR's Mail package defines an interface for implementing mailers under the PEAR hierarchy. It also provides supporting functions useful to multiple mailer backends.

Currently supported backends include:

- PHP's native `mail()` function
- sendmail
- SMTP

This package also provides a [RFC 822](https://tools.ietf.org/html/rfc822) email address list validation utility class.

Use Mail in combination with [Mail\_Mime](http://pear.php.net/package/Mail_Mime) to send HTML emails or emails with attachments - have a look at the [example](http://pear.php.net/manual/en/package.mail.mail-mime.example.php).

Installation
------------

[](#installation)

### PEAR

[](#pear)

```
$ pear install mail
```

### Composer

[](#composer)

```
$ composer require pear/mail
```

Links
-----

[](#links)

HomepageSource codeIssue tracker[http://pear.php.net/bugs/search.php?cmd=display&amp;package\_name\[\]=Mail](http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Mail)Unit test statusPackagist

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity58

Moderate usage in the ecosystem

Community41

Growing community involvement

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~617 days

Total

8

Last Release

900d ago

Major Versions

v1.6.0 → v2.0.02024-01-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120511?v=4)[Michael Gauthier](/maintainers/gauthierm)[@gauthierm](https://github.com/gauthierm)

---

Top Contributors

[![jparise](https://avatars.githubusercontent.com/u/10311?v=4)](https://github.com/jparise "jparise (74 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (17 commits)")[![ashnazg](https://avatars.githubusercontent.com/u/100170?v=4)](https://github.com/ashnazg "ashnazg (16 commits)")[![schengawegga](https://avatars.githubusercontent.com/u/3207865?v=4)](https://github.com/schengawegga "schengawegga (11 commits)")[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (6 commits)")[![alecpl](https://avatars.githubusercontent.com/u/546788?v=4)](https://github.com/alecpl "alecpl (4 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (4 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (4 commits)")[![mj](https://avatars.githubusercontent.com/u/5277?v=4)](https://github.com/mj "mj (2 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (2 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![sunilpawar](https://avatars.githubusercontent.com/u/377735?v=4)](https://github.com/sunilpawar "sunilpawar (1 commits)")[![tvvcox](https://avatars.githubusercontent.com/u/743820?v=4)](https://github.com/tvvcox "tvvcox (1 commits)")[![Ammarpad](https://avatars.githubusercontent.com/u/45658045?v=4)](https://github.com/Ammarpad "Ammarpad (1 commits)")[![athos-ribeiro](https://avatars.githubusercontent.com/u/2052794?v=4)](https://github.com/athos-ribeiro "athos-ribeiro (1 commits)")[![exussum12](https://avatars.githubusercontent.com/u/1102850?v=4)](https://github.com/exussum12 "exussum12 (1 commits)")[![fiftin](https://avatars.githubusercontent.com/u/914224?v=4)](https://github.com/fiftin "fiftin (1 commits)")[![kenguest](https://avatars.githubusercontent.com/u/234118?v=4)](https://github.com/kenguest "kenguest (1 commits)")[![matidau](https://avatars.githubusercontent.com/u/65836048?v=4)](https://github.com/matidau "matidau (1 commits)")[![peterthomassen](https://avatars.githubusercontent.com/u/4242683?v=4)](https://github.com/peterthomassen "peterthomassen (1 commits)")

### Embed Badge

![Health badge](/badges/pear-mail/health.svg)

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

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[roundcube/roundcubemail

The Roundcube Webmail suite

7.1k2.4k3](/packages/roundcube-roundcubemail)[pear/mail_mime

Mail\_Mime provides classes to create MIME messages

507.8M36](/packages/pear-mail-mime)[pear/net_smtp

An implementation of the SMTP protocol

263.2M23](/packages/pear-net-smtp)[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)
