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)414.7M—2.1%7517BSD-3-ClausePHPPHP &gt;=5.2.1

Since Jan 9Pushed 1y 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 1mo 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

49

—

FairBetter than 95% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity58

Moderate usage in the ecosystem

Community40

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

854d 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)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (4 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (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)")[![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)")[![richardbrinkman](https://avatars.githubusercontent.com/u/3140575?v=4)](https://github.com/richardbrinkman "richardbrinkman (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

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[pear/mail_mime

Mail\_Mime provides classes to create MIME messages

497.4M28](/packages/pear-mail-mime)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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