- or download this
$Inbox = $ns->GetDefaultFolder(olFolderInbox); #Set Inbox = ns.GetD
+efaultFolder(olFolderInbox)
- or download this
if ($Inbox->Items->$Count = 0) { #If Inbox.Items.Count = 0 T
+hen
- or download this
foreach ($Inbox->Items){ #For Each Item In Ibox.Items
- or download this
Option Explicit
...
End Sub