Hello,

I'm building a Drupal site that captures users property preferences (location, price range, bedrooms etc.) in the account creation form. I have a property content type that contains fields that match the ones in the user signup form. I'm trying to figure out a way to email users when a property or properties are submitted to the site that match their preferences.

I've watched the Rules framework series on the nodeone site (great tutorials BTW!) and I'm thinking this may be possible using Rules, VBO and maybe the Relation module? So I'm wondering if anyone could point me in the right direction or let me know if I'm crazy for thinking this is possible at all.

Any help would be greatly appreciated.

Thanks!

Comments

rikki_iki’s picture

I also need this type of functionality! Did you have any progress with it?

IWasBornToWin’s picture

It took me forever to find this module but it's the best I found, by far. Basically you can create a view and then tell rules to run this module, the view can have any criteria you want. When rules runs it, it will send emails to every record in the view. I'm using it for a much more complex auto-responder, notifications, and broadcasting system - all based on certain criteria. Mass Messaging Module

rikki_iki’s picture

Oh that sounds awesome! Thanks for the quick response, I'll give Mass Messaging a go.

IWasBornToWin’s picture

Here's a great bullet list how-to - http://drupal.org/node/1215196#comment-4906798. Don't forget to (if you need it) to insert argument in rule which is firing mass message. Then in the view argument, set to hide results unless argument is available. I got hung on this last step. You may or may not need it.

rikki_iki’s picture

Thanks for the link and tips. I'm struggling a little with my use case but this is certainly a great start.

TR’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed
Issue tags: -rules, -vbo, -automated email, -relation

This seems to have been answered by #2 and #4. A Rules-only solution with "Fetch entities by property" seems possible - when new content is added you would fetch all user entities that have a matching field value. Use multiple actions, one for each field, then a final action to e-mail the list of users that was selected. However, this might be a very inefficient way to do things if you have a lot of fields and a lot of users, and it might be better to use a custom module.

TR’s picture

Status: Fixed » Closed (fixed)