Hi - not sure if this is meant to be possible now - my searching for 'multiple' and 'bulk' failed to dig it up. It seems likely to exist and I am just misreading the signpost.
Set up a View with a 'send message link' (DONE)
Also provide a checkbox so I can click on the various people I want to add to a message/conversation and click a 'send message' button

I was looking to VBO integration with PM to do this but am not seeing it.

VBO offers a Send e-mail (system_send_email_action)

Is this a discussion I need to have in the VBO queue?

Comments

Berdir’s picture

Should be possible to build this using using the Rules module.

qasimzee’s picture

hi, are you able to resolve it?

bsandor’s picture

Just to make sure we are talking about the same thing. My needs are:

having a list created by views module. It's a list of members with certain criteria. User see this list and can choose from these members who to send a PM.
User creates this PM. Same PM is going to be sent to each chosen members.

I really need this feature. Any ideas how to do it is highly appreciated.

Can this case be solved with no modification of PM and VBO or some code needs to be written at either side?

petednz’s picture

we aren't looking any further at this till we get this resolved http://drupal.org/node/1928502

StG’s picture

Issue summary: View changes

I also need this feature and have figured out the followings so far. I created a view with VBO and added a custom action to process the selected users and place them into the recipient field:

function mymodule_my_custom_action(&$user, $context=array()) {

module_load_include('pages.inc','privatemsg');
     
$recipients = array();
foreach ($user as $recipient) {
$recipients[] = user_load($recipient->uid);
}

$subject = 'Some subject'

$message_form = drupal_get_form('privatemsg_new', $recipients, $subject);
$message_html = drupal_render($message_form);
}

The content of $message_html looks OK but I don't know how to show it, print $message_html; doesn't do anything.

So I'd like to know how to put these elements together: For example would it be possible to use a panel page, one for the view of users with VBO and one for the privatemsg form?

Any help would be greatly appreciated!

ivnish’s picture

Status: Active » Closed (outdated)