How can I email all the data from a view to my email address using VBO? I done it and it sent me an email 175 times with the text I put in at actions. and not the actual data. How do I do it so I can get the actual data? Please

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Views doesn't do any emailing, so I'm afraid I can't help you. VBO is not supported in the Views queue.

dawehner’s picture

Project: Views (for Drupal 7) » Views Bulk Operations (VBO)
Version: 6.x-3.0-alpha2 » 6.x-1.8
Component: node data » Actions
Status: Closed (won't fix) » Active

Then this shoudl be part of vbo.

I guess you could write add a submit handler to the vbo form.

infojunkie’s picture

Version: 6.x-1.8 » 6.x-1.x-dev
Category: task » feature

Please confirm that you want to send *one* email that contains the information of the rows that you selected in a view.

If this is the case, then there is no ready-made action to do this. If you can code, please use the following approach:

* Use the latest dev (12 hours from now, I just committed a fix that you will need)
* Write a node_operation that performs what you want. Here's how to declare your node_operation:

<?php
function mymodule_node_operations() {
  return array(
    'email_view' => array(
      'label' => t('Email My View!'),
      'callback' => 'mymodule_email_view',
    ),
  );
}

function mymodule_email_view($nodes, $view = NULL, $rows = NULL) {
  // $nodes is an array of selected nids,
  // $view is the actual view object,
  // $rows is an array of selected rows as returned by the view

  // Put your email code here.
}
?>

Hope this helps!

vip_sa’s picture

I would like to send one email with all the info from the rows I selected in a view. Like a RSS feed but in an email and all the rows I selected and not just some.

I don't know how to code no

infojunkie’s picture

Status: Active » Postponed

Mark this as postponed until someone wants to pick it up.

bojanz’s picture

Category: feature » support
Status: Postponed » Fixed

Write a custom action ( hook_action_info() or hook_node_operations()). In the action info array, declare 'aggregate' => TRUE, so that the action gets all selected results.
Send the email.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

RgnYLDZ’s picture

Issue summary: View changes

A post from 2010 :) I'm searching for the same thing.

My scenario is;

I have a actor content type. The owner of the agency(website) wants to select some actors from the list(view) and email them to producers as suggestions.

Any update or solution for this?