Jessica wanted to be notified every time someone left a comment. It took me a little while to find the hack for it as I was unable to find a legit way to get it working. Below is the code that needed to be inserted into the add_comment.php file. It had to be added right after dismissAndReload(); in the aforementioned file.
mail(“email@example.com”, “Gallery comment added by”,
$comment_text . “\n\n\n” .
“\n\nIndex:” . $index,
Of course the email address had to be changed but you get the idea.