cakephp-plugin log_mail
LogMail is a quick and dirty plugin to store all mail sent to the database and display latest emails in a DebugKit Panel.
samso/log_mail
LogMail is a quick and dirty plugin to store all mail sent to the database and display latest emails in a DebugKit Panel.
- Tuesday, March 8, 2016
- by sams
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 7 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
CakePHP LogMail Plugin
LogMail is a quick and dirty plugin to store all mail sent to the database and display latest emails in a DebugKit Panel, (*1)
Requirements
The master branch has the following requirements:, (*2)
- 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, (*3)
Todo
- Add unit tests
- display HTML emails correctly
- use cache instead of the database for store the emails ?