$doc = $modx->getDocument($id); return $doc['createdon'];

//get info from db
$tblContent= $modx->getFullTableName('site_content');
$query= "SELECT parent, pagetitle , createdon, editedon FROM $tblContent WHERE id = '$id'";
$doc= $modx->dbQuery($query);
$doc= $modx->db->getRow($doc);
$create = $doc['createdon'];
$edit = $doc['editedon'];
$parent= $doc['parent'];
$title = $doc['pagetitle'];
//send mail
if ($create == $edit && $parent == ??) /replace ?? by your folder or remove
{
$e = &$modx->Event;
switch($e->name) {
case 'OnDocFormSave':
mail("mail@mydomain", "New article: $title", "new article waiting for validation");
break;
default:
break;
}
}
But, as usual, I will only give a few tips and suggestions 
function getDocument($id=0,$fields="*",$published=1, $deleted=0)
- to have the ability to define wether or not a document should be included in notification of new content (probably use a checkbox TV here)
- to have a basic personnalisation for each user (like, having their name displayed)
I actually wrote that for my NewsLetter Module/Snippet/Plugin bit. I can extract the code that does that and post if people wish.
I actually wrote that for my NewsLetter Module/Snippet/Plugin bit. I can extract the code that does that and post if people wish.