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.