PHPackages                             trq/smtpcatcher - 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. trq/smtpcatcher

ActiveLibrary

trq/smtpcatcher
===============

A Very Simple Smtp Mail Catcher.

25355PHP

Since Jun 18Pushed 12y ago3 watchersCompare

[ Source](https://github.com/trq/smtpcatcher)[ Packagist](https://packagist.org/packages/trq/smtpcatcher)[ RSS](/packages/trq-smtpcatcher/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

A Very Simple Smtp Mail Catcher
===============================

[](#a-very-simple-smtp-mail-catcher)

Inspired by the Ruby based  project, I wanted something more light weight and written in PHP.

This is the basic start of that project.

Use this tool as a simple replacement for sendmail when testing local PHP scripts that need to send mail.

### Installation

[](#installation)

Just edit your php.ini and point your sendmail\_path to bin/smtpcatcher, eg;

```
sendmail_path = /path/to/bin/smtpcatcher

```

You could also edit this config option via a local .htaccess

```
php_value sendmail_path "/path/to/bin/smtpcatcher"

```

### View Sent Mail

[](#view-sent-mail)

Viewing sent email is easy, issue:

```
./path/to/bin/smtpcatcher -s

```

Then visit  in your browser.

### Sending Test Email

[](#sending-test-email)

To check that smtpcatcher is working as expected and catching emails you can use it to send test emails:

```
./path/to/bin/smtpcatcher -t foo@foo.com "some test" "this is a test email"

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b7630352d1dfa2221e22452355862a951e282a65f959b61bbe9de9956ede676?d=identicon)[trq](/maintainers/trq)

---

Top Contributors

[![trq](https://avatars.githubusercontent.com/u/32683?v=4)](https://github.com/trq "trq (6 commits)")

### Embed Badge

![Health badge](/badges/trq-smtpcatcher/health.svg)

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

PHPackages © 2026

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