This question has been answered by BobRay. See the first response.
Permissions: logs,see_manager_actions
<?php
$allActions = $modx->request->getAllActionIDs('core');
/* Do nothing if we're on some other page */
if ($action != $allActions['system/action']) {
return;
}
/* PHP code to send email goes here */
return '';
In 2.3 it's just ?a=system/logs
<?php
/* Do nothing if we're on some other page */
if ($action != 'system/logs']) {
return;
}
/* PHP code to send email goes here */
return '';