.

Thank you very much, I changed with ’OnDocFormSave’ and I have my feature
But it could be just an update so what about piece of code to control that. Have you got any ideas?
I am going to look after that even if I am not a famous coder
$create = &$modx->documentObject['createdon'];
$edite= &$modx->documentObject['editedon'];
if($create==$edite) {mail()}

but it doesn’t work, I received my mail whereas it was just an update
I discover the modx API and it’s not easy. But be sure I hope to share my project even if it’s a very small contribution!
I can’t find the file you talk about