![]() $findItemsResults = $Inbox.FindItems($Sfha,$ivItemView)įoreach($miMailItems in $findItemsResults. I alos have added a sequence generator in to the file name as well this is the $a value The problem is by the time the code is in the last foreach loop you have lost most of the mail info so you have to add this back in be for the loop below is the code that worked for me OK I have managed to do it with a lot of help from the above examples and some trile and error (for moving message/s to Trash/Deleted Items)
0 Comments
Leave a Reply. |