J
Joe Maki
What I'm trying to do is loop through an inbox and retreive
information from emails that have failed to be delivered. I can get
the body of a MailItem and pull out the email address. My problem is
most of the notices appear to be ReportItems (Object.Class = 46).
When I try to retreive the body of the reportitem my string variable
seems to be blank. Am I missing something basic?
Dim iMail As Object
DIm fldInbox as Outlook.MAPIFolder
Set fldInbox =
Outlook.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
For Each iMail In fldInbox.Items
If iMail.Class = olMail Or iMail.Class = olReport Then
With iMail
'read info from each piece of mail
strBody = .Body
If EmailPulled(strBody) Then
.FlagStatus = olFlagComplete
End If
End With
iChecked = iChecked + 1
End If
Next
Thanks, ...joe
information from emails that have failed to be delivered. I can get
the body of a MailItem and pull out the email address. My problem is
most of the notices appear to be ReportItems (Object.Class = 46).
When I try to retreive the body of the reportitem my string variable
seems to be blank. Am I missing something basic?
Dim iMail As Object
DIm fldInbox as Outlook.MAPIFolder
Set fldInbox =
Outlook.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
For Each iMail In fldInbox.Items
If iMail.Class = olMail Or iMail.Class = olReport Then
With iMail
'read info from each piece of mail
strBody = .Body
If EmailPulled(strBody) Then
.FlagStatus = olFlagComplete
End If
End With
iChecked = iChecked + 1
End If
Next
Thanks, ...joe