If you need to have authors receiving an email when a comment is posted on one of their articles, do the following :

- install and enable token module, version next to 6.x-1.11 (dev version, presently)
- enable trigger module
- log in as administrator and go to Actions
- add an advanced "send tokenized email" action
- put [author-mail] in the recipient field and fill in other fields as you want
- go to the Triggers and click the "Comments" button
- in "After saving new comment", add the action you just created

Comments

lancsDavid’s picture

i didn't get the "send tokenized email" action until i enabled the 'token actions' module. then i got it

('token actions' comes with 'token'. you don't need to download it separately)

correct if i'm wrong though

solodky’s picture

pls give all details so the author of the commented node will know which node got commented on and it's url so the author can see the comment... etc...Just because YOU understand the details doesn't mean every one else does..

or point me to a COMPLETE and usable tutorial..please>???

uddhi108’s picture

1. Go to modules page (/admin/build/modules).
2. Download the following module: Token (http://drupal.org/project/token).
3. Activate the following modules: token, token actions, triggers.
4. Go to manage your actions (/admin/settings/actions).
5. In the "Choose an advanced actions" box, select "Send tokenized e-mail..." and click "Create".
6. Fill in all the fields and put [author-mail] in the recipient field. Adding %node_url and %title somewhere in the message would be a good idea so that the author knows where the comment came from.
7. Click Save.
8. Go to Triggers and click the Comments tabs (/admin/build/trigger/comment).
9. Under "Trigger: After saving a new comment", in the select box where it says "Choose an actions", select the newly created action.
10. Click Assign and that should do it!

kinosura’s picture

Thank you much, everything is clear. Was usefull for me.

roadie_jay’s picture

There were hints on what tokens were available on the actions form. I didn't have any problem setting up an email that included the info that the author needs to review and reply to their new comments.

Draven_Caine’s picture

Is this possible in D7? if so how do we do it?

baff’s picture

Possible with rules as well http://drupal.org/node/1120898

rwilson0429’s picture

In D7 you can use the following recipe to notify content authors when a comment has been posted on one of their articles or other pieces of content.

Modules needed:

I've modified the original D6 steps shown in this thread for D7.

1. Go to modules page (/admin/modules);
2. Download the modules above and enable Entity API, Entity Tokens (included w/Entity API), Tokens and Triggers (core) modules;
3. Configure System Actions at admin/config/system/actions;
4. Under the Create an advanced action section (located under the Available actions section ), select "Send e-mail..." and click "Create".
5. Fill in all the fields. In the Label field use something like 'Send comment notification e-mail to Author'. In the recipient field put [node:author:mail]. In the subject field put something like 'A comment is posted on [node:title]'. Put whatever text you want in the body of the message field. Adding tokens like [comment:created], [comment:author], [node:title] and [comment:node] somewhere in the message would be a good idea so that the author knows where the comment came from.
7. Click Save.
8. Go to Triggers at admin/structure/trigger/comment. This puts you on the Comment tabs on the Triggers admin page..
9. Under "Trigger: After saving a new comment", in the select box where it says "Choose an actions", select the newly created action.
10. Click Assign and that should do it!

Once you do it once, setting up System Actions and configuring Triggers for those actions are pretty easy.

Yes, you can integrate Triggers and System Actions with the Rules Module but, to accomplish this simple task in D7, the powerful Rules Module would be like dropping a bomb on an ant.

Hope this helps.

ReggieW

areikiera’s picture

Thank you for the tutorial! I ran into just a couple issues when following this guide; the tokens referring to the node need to be specific to the comment or they won't work.

In step #5:

  • [node:author:mail] should be replaced with [comment:node:author:mail]
  • [node:title] should be replaced with [comment:node:title]

Other than that, a perfect tutorial! Thanks Reggie!

koffer’s picture

I create the D7 with this options:

Recipient
[comment:node:author:mail]

Subject
A comment is posted on [comment:node:title]

Message
Your post [comment:node:title] had a new comment in [comment:url]. The comment date are:[comment:created] and is create by [comment:author].

Log in and check comments in

http://www.global-diversity.org/admin/content/comment

Web designer from mexico.

jaydee1818’s picture

Is it also possible to send an email to the authors of comments on a particular node every time a new comment is created? It doesn't seem to appear as an option in the Data Selectors.