To enable CMS Made simple to send e-mails to the administrator when a content page is updated, perform the following steps:
1. In the admin console, click on Extensions | User Defined Tags.
2. Click on the Add User Defined Tag link.
3. Name the new tag
buzzer
and the code as shown:global $gCms; $cmsmailer = $gCms->modules['CMSMailer']['object']; $cmsmailer->AddAddress($cmsmailer->GetFrom(),$cmsmailer->GetFromName()); $cmsmailer->SetSubject('Admin buzzer'); $cmsmailer->SetBody('The page <i>' .$params['content']->mName.'</i> has been changed.'); $cmsmailer->IsHTML(true); $cmsmailer->Send();
4. Click on Submit.
5. In the admin console, click on Extensions | Event Manager.
6. Find the event called ContentEditPost, and click the edit button on the same line.
7. Select the buzzer tag from the drop-down field, and click Add.
8. Now, change any page to test the admin buzzer function. You should receive an e-mail notification...