/LogMail

CakePHP Email Logger and DebugKit Panel for stage environments

Primary LanguagePHP

CakePHP LogMail Plugin

DEPRECATED: This project is no longer maintained.

LogMail is a quick and dirty plugin to store all mail sent to the database and display latest emails in a DebugKit Panel

Requirements

The master branch has the following requirements:

  • CakePHP 2.1.3 or greater.
  • PHP 5.3.0 or greater.
  • DebugKit plugin
  • Migrations plugin

Installation

  • Setup DebugKit
  • Run Migration Console/cake Migrations.migration run all --plugin LogMail
  • Add to AppController 'DebugKit.Toolbar'=> array( 'panels' => array('LogMail.LogMail')),
  • Use this config in your email.php file public $logdebug = array( 'transport' => 'LogMail.DatabaseLogDebug', 'from' => 'hey@example.com' );

Documentation

Important: This plugin is not for production use, it's aimed to stage and development environments

Todo

  • Add unit tests
  • display HTML emails correctly
  • use cache instead of the database for store the emails ?