Some people, when confronted with a problem, think ``I know, I'll use regular expressions.'' Now they have two problems.
Using Tokens in Comment-Triggered Email Notifications
The stock "Send Email" action type that ships with Drupal 6 does't offer a whole lot of options for including content from comments in your triggered emails.
In fact, it doesn't offer any.
There has been a good deal of discussion on this: a patch has been proposed and a stop-gap helper module has been posted to drupal.org.
Before you go that route, though, check out this post on using the Token Actions module to provide access to the full array of available tokens in your email. Thanks to Erik Weik at New Rivers Digital for the great post.
We're using Trigger-based email notifications to fight spam and help our clients be engaged with their commenters.
How do you use and implement comment notifications?







Comments
That has an easy answer - the Notifications module:
http://drupal.org/project/notifications
12 July 2007
1 day 2 hours
Hey there Mike, thanks for pointing out the obvious option that I completely neglected to mention.
That said, in our particular use case Notifications with Content Notifications and Notification Autosubscribe didn't seem to quite fit the bill for one reason: we were adding notifications to a site with a lot of existing content, and the autosubscribe didn't apply to content authored before the module is set up, or at least so it appeared.
That said, it's worth thinking a bit about the pros and cons of Notifications vs. Triggers. Notifications is certainly the most robust of the two, and on high traffic sites the queuing is key. On the other hand, for less demanding applications building a notifications system on just core + Token does have a certain appeal.
Then again, maybe I'm just an old fogey used to the workflow-ng way of doing things.