ReportItem

  • Thread starter Thread starter Thomas Hufschmidt
  • Start date Start date
T

Thomas Hufschmidt

Hi,

when I send an email to an invalid address, I get back a message which
is not a usual email but a ReportItem. I have to program a function which
scans the body of those items. But the problem is that the body is always
empty (vbnullstring). Does anyone know how I can read the body of report
items??

Assume that you have selected one of those report items in your
inbox-folder,
then this code will show only an empty msgbox:

Public Sub Test()
Dim m As Object

Set m = Application.ActiveExplorer.Selection.Item(1)
MsgBox m.Body

Set m = Nothing
End Sub

This code works fine, if the report item is not a report item but a real
returned mailing (MailItem)!

Thanks in advance,
Tommy Hufschmidt
MCP
 
The details are in the MAPI properties on the ReportItem. Use CDO or
Redemption or Extended MAPI to get to them.
 
Back
Top