IT Architect / Photographer / Adventurer

How to configure email notification of new Drupal (v6 and v7) comments awaiting approval

Posted by jason in

Out of the box, Drupal 6.x is not configured to notify anyone when a new comment is awaiting approval. If you have decided to require approval for all new comments, you can do one of two things:

  1. You can visit your site on a regular basis to check for new comments awaiting approval, OR
  2. You can configure Drupal to send you an email whenever a new comment is created.

I prefer #2, so let's see how that works...

First you need to create a new action.
Go to Administer - Configuration - Actions. Make a new advanced action based on Send e-mail...

Configure the new action to send you (or your site administrator) an email.

Then you need to assign a trigger to the action you just created.
Go to Administer - Building - Triggers. On the Comments tab, assign the new action to the trigger After saving a new comment.

Now it just needs to be tested.
Log out and then add a new comment somewhere on your site. Then check your email and you should see the new notification.

Comments

13 comments posted

Thanks Alot

Submitted by Anonymous on Mon, 26/03/2012 - 9:34pm.

Hello my frnd ....
thanx for this idea....

thank you!

Submitted by Anonymous on Wed, 15/06/2011 - 2:31am.

Thank you indeed, this was straightforward and simple to follow. I appreciate it a lot!

Thanks Player

Submitted by Anonymous on Thu, 09/06/2011 - 6:48am.

... just what I needed.

Thanks

Submitted by Anonymous on Sun, 03/04/2011 - 3:14am.

Thanks, I forgot all about triggers when I wen't to D7. It works great on my site http://waynesimmerson.ca

How to send the content of the comment in the email notification

Submitted by Anonymous on Wed, 02/03/2011 - 3:18pm.

Hi all

The instructions given here was very helpful and I am now able to receive email notifications when new comments are posted, but I also want to send the content of the comment in the email notification, so that I am able to take a decision whether to approve the comment or not. Please let me know how to do this,

Further, is there a way, where I can either delete or approve the comment right there from the email I receive.

Fantastic!

Submitted by Anonymous on Wed, 23/02/2011 - 7:42am.

Thank you so much! Just wanted you to know this helped my a lot.

Works like a charm!

Submitted by Julie Bernstein (not verified) on Mon, 09/08/2010 - 7:47am.

Thanks for this extremely helpful information! Worked great exactly as described under Drupal 6.

Drupal 7

Submitted by Anonymous on Thu, 05/08/2010 - 2:09am.

Thanks for this... it works great for Drupal 7 as well... you just need to install the trigger module first from the modules list.

Thanks for the help Jason!

Submitted by Anonymous on Wed, 30/06/2010 - 6:51pm.

Thanks for the help Jason! I was looking at all those bloated notify modules when a simply trigger/action did the trick!

-Smith
http://www.smithmilner.com

Great information

Submitted by Anonymous on Wed, 09/06/2010 - 7:07am.

I'm a new Drupal user, and hadn't yet learned of Actions and Triggers. Really powerful stuff. Thanks for the very helpful information!

Thanks!

Submitted by Anonymous on Wed, 03/03/2010 - 7:48am.

Thanks a lot Jason, I missed this function for a while and now it works!
Greetings,
Arjan

I always forget that triggers

Submitted by Anonymous on Sun, 28/02/2010 - 1:29am.

I always forget that triggers are already available in Drupal 6. I was about to write a module to do just this function. Your post saved me from unnecessary coding.

Mel
http://MisterAtMisis.com

Thanks a lot

Submitted by Anonymous on Tue, 26/01/2010 - 12:17am.

Exactly what I was looking for!

Worked in less than 5 minutes.