I've got Views Send installed with Rules and VBO on a D7 installation.

Upon publishing of a certain content type, I want the content of that node to be emailed out to a list. This list is made up of nodes of another CT, with email as a single field.

I've currently created a rule which acts on node publication, checks that the node is of a certain type (with a certain taxonomy field), then the following action:

Load a list of entity objects from a VBO View.
Parameter: View and display: Content | Page, Arguments: [node:field_myfield]
Provides variables: A list of entities (entity_list)

I think I need to create a loop of all the email addresses but I'm unsure how to proceed.

Can anyone help?

Comments

IWasBornToWin’s picture

I need help with this too

hansfn’s picture

Title: Sending bulk emails with rules and VBO » Sending bulk emails with Rules and VBO

Views Send (on Drupal 7) is no longer using VBO. The VBO maintainer, bojanz, made a good argument that Views Send is better of as a stand-alone Views Form handler. (VBO is also a Views Form handler.) However, bojanz and I forgot that VBO has some nice extra features - like Rules support. Maybe the move away from VBO wasn't that smart. Time will show.

After I discovered this problem, I looked quickly for Rules support for general Views Form handlers, but didn't find anything. I also asked bojanz, indirectly - see my last comment on #1477828: Stop relying on VBO, implement a custom Views Form handler instead. I'm happy for any input that can help resolve this issue.

PS! I'm no Views (or Rules) expert. I just stepped up to maintain this module since the original maintainer never made a D7 version.

hansfn’s picture

Component: Documentation » Code
Assigned: Unassigned » hansfn
Category: support » task
IWasBornToWin’s picture

Per your home page of this project under Dependencies & Integration it says:

Rules. (Drupal 7 only.) When the Rules module is enabled, the user can define actions for when emails are sent and/or placed in the spool.

Has this ever been accomplished, if so - how? This is all I am wanting to achieve....and I have done everything I listed in this issue - http://drupal.org/node/1677382

Thnaks

hansfn’s picture

Please keep the discussion in that issue then. (I'm replying there now.)

hansfn’s picture

Title: Sending bulk emails with Rules and VBO » Sending bulk emails with Rules

Since Views Send isn't using VBO, I have updated the title. Will test if I'm able to use Views Send directly from Rules ...

hansfn’s picture

Category: task » support
Status: Active » Closed (fixed)

OK, this was much easier solved using the Views Rules module. I think the conclusion is that "Views Send" is for interactive usage. You use "Views Rules" if you want to use Views data in Rules. (This is for Drupal 7.)

It worked really nice. I just added a Rules display to an existing View (with or without a Views Send field) and configured the row variables. Then I created a rule with a View loop. In the loop I added an action - System: Send Mail - which uses values from the View row and from the newly created node.

IWasBornToWin’s picture

This module worked best for me - http://drupal.org/project/mass_messaging

hansfn’s picture

Sure, that is a good option too. I just like Views Rules better because it's more general. Probably Mass Messaging has some features that can't be 100% reproduced with Views Rules.