in reply to Multiple attachments Outlook

I think you messed up with the scope. Shouldn't it be:
my $Attachments = $item->Attachments(); foreach my $attach(@attach) { $Attachments->Add($attach); }
???

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: Multiple attachments Outlook
by Anonymous Monk on Aug 25, 2005 at 18:40 UTC
    It still does the same thing even with the change in code with "my $Attachments = $item->Attachments();" outside of the foreach loo"p. It only attaches one file. Thanks for your help.
      Did you debug the program and step through the code where you are checking to see if the file is there (-e)? You may only be getting one file because it may not be firing that code. Try that.

      Celebrate Intellectual Diversity