Skip to content

Notify admin by email each time a field contain selected keyword

Notifications You must be signed in to change notification settings

zhaff/NotifyKeywordBehavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Notify Keyword Behavior for CakePHP

Notify admin by email each time a field contain selected keyword

Installation

  1. Copy NotifyKeywordBehavior.php to /Model/Behavior/ folder

  2. Add the following code to your model

     public $actsAs = array(
     	'NotifyKeyword' => array(
     		'emailTo' => '[email protected]',
     		'keyword' => 'bomb'
     	)
     );
    
  3. Change emailTo and keyword to your own needs.

About

Notify admin by email each time a field contain selected keyword

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages