trq/smtpcatcher

A Very Simple Smtp Mail Catcher.

Installs: 35

Dependents: 0

Suggesters: 0

Security: 0

Stars: 25

Watchers: 3

Forks: 5

Open Issues: 0

pkg:composer/trq/smtpcatcher

dev-develop 2013-06-18 05:39 UTC

This package is not auto-updated.

Last update: 2025-10-07 09:16:21 UTC


README

Inspired by the Ruby based http://mailcatcher.me 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

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

Viewing sent email is easy, issue:

./path/to/bin/smtpcatcher -s

Then visit http://localhost:8100 in your browser.

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"