Nodes contain e-mail field in CCK and are listed in Views.

When I choose a few nodes, email with attachement is send only to first node in list. Other are without attachements.

Configuration:
Views Bulk Operations (VBO) 6.x-1.9
Views 6.x-2.8
Mime Mail 6.x-1.x-dev (2009-cz.-08) + Rules patch ( http://drupal.org/node/501722 )
Rules 6.x-1.1

Before I applay a path I used a PHP code in Rules with Mimemail function:
function mimemail($sender, $recipient, $subject, $body, $plaintext = NULL, $headers=array(), $text = NULL, $attachments = array(), $mailkey = '')
and it also sent attachement only to the first node in list.

Comments

wisniewski’s picture

Further investigation:

It is not the matter of Rules or Views, when I execute a few function mimemail() one after another, only the first mail contain attachments.

my test:

<?php
....
mimemail('me@cra.com.pl', 'kw@grupa.it', 'BEST SERVICE', $body, $plaintext = NULL, $headers=array(), $text = NULL, $attachments = $files, $mailkey = '');
mimemail('me@cra.com.pl', 'kw@ekotrendy.pl', 'BEST SERVICE', $body, $plaintext = NULL, $headers=array(), $text = NULL, $attachments = $files, $mailkey = '');
mimemail('me@cra.com.pl', 'kw@prokonf.pl', 'BEST SERVICE', $body, $plaintext = NULL, $headers=array(), $text = NULL, $attachments = $files, $mailkey = '');
?>
wisniewski’s picture

Status:Active» Fixed

Problem solved and path provided by folkertdv in
http://drupal.org/node/358439#comment-1426276

Status:Fixed» Closed (fixed)

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