Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.55 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.55 KB

vccw/mailcatcher

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Re-routes all WordPress emails to Mailcatcher.

http://mailcatcher.me/

How to use

Place a plugin into mu-plugins

Place a plugins into wp-content/mu-plugins like following.

<?php
/*
Plugin Name: mu-plugin for example.com
*/

require_once dirname( __FILE__ ) . '/vendor/autoload.php';

Create a composer.json

Create and place a composer.json into wp-content/mu-plugins.

{
    "name": "mu-plugins",
    "authors": [
        {
            "name": "John Smith",
            "email": "[email protected]"
        }
    ],
    "require-dev": {
        "vccw/mailcatcher": "*"
    }
}

Install libraries

Then run a composer command.

$ composer install

How to development

$ git clone [email protected]:vccw-team/mailcatcher.git
$ cd mailcatche
$ composer install

Running a PHPUnit

After you run a composer install, then run phpunit.

$ phpunit