ReportItem

  • Thread starter Thomas Hufschmidt
  • 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
 
S

Sue Mosher [MVP]

The details are in the MAPI properties on the ReportItem. Use CDO or
Redemption or Extended MAPI to get to them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top