Search no longer, and just go for the Rules. But don't fear, all you need is an extremely basic rule (a kind of Rules 101 exercise ...), which looks like so (in Rules export format):
{ "rules_notify_admins_about_new_comments" : {
"LABEL" : "Notify admins about new comments",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "comment" ],
"ON" : { "comment_insert" : [] },
"DO" : [
{ "mail_to_users_of_role" : {
"roles" : { "value" : { "3" : "3" } },
"subject" : "A new comment was posted for node with id [comment:node:nid] ...",
"message" : "This is to inform you that a new comment was added to the node with id [comment:node:nid] ... The comment can be found at [comment:url]"
}
}
]
}
}
Some details about this rule:
- Rules Event: After saving a new comment.
- Rules Condition: none (though you might want to add anything that fits, e.g "not if the comment author is an admin ...").
- Rules Action: send mail to all users of a role, with role = administrator.
Use the Rules UI to import this rule in your own site, no tuning of any kind needed to make it work as requested in this question, except that you may want to refine the eMail title and eMail body to fit your own needs.
Please admit, this is probably the most basic custom rule one could ever think of, in plain English: "Whenever a comment is inserted, send an eMail to all admins
".