Hi!
Amazing as it is, this is my first contact with this module.
I can´t belive it, it seems exactly what I need!!
I´ve tested it and I can even send emails to users. And there I´ve got a question.

If I attach or glue a view to a node (using viewfield), and that view show a list of certain users, could I use this module to send all selected users an email with the current node inside?
I´ve tried with tokens, but couldn´t do it (probably I´m doing something wrong here, or just missing something that´s in the tip of my nose...).

Thanks for your answer and help!!

Rosamunda

Comments

infojunkie’s picture

Hello,

I'll try viewfield and let you know how that could work.

Rosamunda’s picture

Thanks Karim!!!

infojunkie’s picture

In order to achieve what you want here, some plumbing has to be done behind the scenes:

* When you create a node containing the viewfield, specify that %nid should be passed to the view as argument.
* A new action should be programmed to send email to the passed users and to access the nid argument above. Specifically, the action function would look like this (plus the error checking):

<?php
function rosamunda_email_action(&$user, $context) {
  $view = $context['view'];
  $nid = view->args[0];
  $node = node_load($nid);
  $email_to = $user->mail;
  // now you have the node and the email address, you can send your email.
}
?>

There is unfortunately no action that does this out of the box. I made small changes to VBO to make that scenario above work, so you'll need the latest dev version (available 12 hours from now) to try it.

Hope that helps.

Rosamunda’s picture

Status: Active » Fixed

I really, really, REALLY appreciate your kindness and help!!
THANKS!!!
I´m looking forward to download the latest dev!!
I´ve not tested it yet, but I´m closing this as fixed. In case I encounter any bug I´ll let you know about it :)

Rosamunda

Status: Fixed » Closed (fixed)

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