I have a script that does the following
- Access a mailbox
- For Each mail - store the attachment to a local folder
- For Each file in local folder-Process the file
- Send the attachment back to sender for mail
I want to consolidate the emails so that the attachments are grouped together and sent in the same groups.
When I move the send outlook function from the for each file process loop , it sends the first file to all 3 recipients.