I want to get system emails telling me a comment posted by an anonymous user is awaiting approval.

I have set up premissions to allow anonymous users to post comments, and created an action to send an appropriately titled email, and also a trigger to send it when a new comment is posted.

My problem is that I get this email when an authenticated user posts a new comment (which they can do without approval required). How can I configure it so that I only get notified when an anonymous user posts a comment that's awaiting approval?

In the Comments section in Trigger, the only option is this:

Email: Comment Awaiting Approval

and there seems to be no way to specifiy that this should only apply when the certain user type posts a comment.

Comments

foxtrotcharlie’s picture

I'd install the rules module which gives you conditions which you can specify. So you can set up the rule as follows: When a new comment is saved, send the notification email on condition that the user who posted the comment has the role 'anonymous user'.

http://drupal.org/project/rules

ayesh’s picture

Yes, Rules.
I'm not sure but almost an year ago, I did the same. But the user's email address was not replaced by tokens.
If you got something wrong, try to load the comment manually by adding an extra action.