JWardee / wp-mail-catcher

A fast, lightweight plugin that saves emails sent by your WordPress website.
GNU General Public License v3.0
26 stars 11 forks source link
email grunt gruntjs logger php psr-2 wordpress wordpress-plugin wp wp-mail wp-plugin

WP Mail Catcher

Backup and save your contact form emails (including Contact Form 7) to your database with this fast, lightweight plugin (under 140kb in size!)

Features

alt text

alt text

alt text

alt text

Confirmed support

Not currently supported

Hooks and actions

Developing locally

  1. Download the repo
  2. Install Docker and Docker compose
  3. Allow entrypoint script to be executable chmod +x ./entrypoint.sh
  4. Run ./entrypoint.sh up
  5. Go to http://localhost:8080 and configure WordPress
  6. Login to the admin panel and activate the plugin

Extra commands

  1. Run ./entrypoint.sh grunt compile to compile assets
  2. Run ./entrypoint.sh phpunit to run unit tests
  3. Run ./entrypoint.sh phpstan to run static analysis
  4. Run ./entrypoint.sh phpcs to check linting
  5. Run ./entrypoint.sh composer XYZ to run composer (replace XYZ with your composer command)

Changing PHP versions

  1. Update the WordPress/PHP versions in the entrypoint.sh file. Ensure the corresponding Docker image exists
  2. Destroy existing containers and their volumes
  3. Run ./entrypoint.sh up

Found an issue, or have an idea on how we can improve?

Let us know in our GitHub tracker!

Contributing

Contributions are always welcome, to get started do the following:

  1. Complete "Developing locally steps", make any changes you need
  2. Ensure unit tests pass (./entrypoint.sh phpunit)
  3. Ensure static analysis pass (./entrypoint.sh phpstan)
  4. Ensure code conforms to PSR-12 standard (./entrypoint.sh phpcs)
  5. Submit your pull request!

Additional resources

Changelog

See the differences between versions here