2017 © Pedro Peláez
 

library smtpcatcher

A Very Simple Smtp Mail Catcher.

image

trq/smtpcatcher

A Very Simple Smtp Mail Catcher.

  • Tuesday, June 18, 2013
  • by trq
  • Repository
  • 3 Watchers
  • 26 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

** A Very Simple Smtp Mail Catcher (WIP) **, (*1)

Inspired by the Ruby based http://mailcatcher.me project, I wanted something more light weight and written in PHP., (*2)

This is the basic start of that project., (*3)

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

** Installation **, (*5)

Just edit your php.ini and point your sendmail_path to bin/smtpcatcher, eg;, (*6)

sendmail_path = /path/to/bin/smtpcatcher

You could also edit this config option via a local .htaccess, (*7)

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

** View Sent Mail **

Viewing sent email is easy, issue:

./path/to/bin/smtpcatcher -s, (*8)


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", (*9)

The Versions

18/06 2013

dev-develop

dev-develop http://thorpesystems.com

A Very Simple Smtp Mail Catcher.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

mail smtp util