"Report.IPM.NOTE.NDR" retrieve actual recipient that NDR has been set to

  • Thread starter Thread starter n777krish
  • Start date Start date
N

n777krish

Hi all,

Could you guide me as to how I may be able to retrieve the actual e-
mail address that sent the NDR and and recipient the NDR was sent to.

I am able to retrieve the recipient who did not get the original e-
mail and for whom the NDR is generated.

When I check the recipients count I get "1". Why is this?

Thanks for any insight.
Neil Goundar.
 
I am not sure I understand: the recipient in the NDR message recipient table
is the original recipient who did not (apparently) receive the message. The
NDR itself was received by *you* (the mailbox owner)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hi Dmitry,

Thank you for the reply.

Here is what I am trying to do. If I have received a Delivery failure
report or a Report confirming e-mail delivery I want to be able to
take out the recipient that sent this NDR (system administrator) from
the ReportItem itself.

I also want to be able to get out who received a NDR report from the
ReportItem.

This is a need because someone may have forwarded a NDR to me and I
need to see who sent the NDR to whom.

When trying to get it out to the Recipients collection it returns the
actual recipient to whom the original e-mail was sent to.

How do I get the above from the ReportItem itself.

Thanks,
Neil Goundar.
 
What do you mean by "forwarded"? As in saving it as an MSG file? Or as in
actually forwarding it by hitting Ctrl+F? In the latter case you are prerry
much out of luck. Otherwise you shoudl be ablee to access the PR_RCVD_xxx
properties using Extended MAPI, CDO 1.21 or Redemption.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hi Dmitry,

I meant that I have selected multiple delivery failure reports and
forwarded it to another address as attachments. On the receiving
account I am saving the NDR into an Outlook folder.

I want to be able to access the person's smtpaddress who actually
received the NDR and the Person's smtp address who actually sent the
NDR.

Is this possible?

Thanks,
Neil Goundar.
 
When you look at these NDRs with MFCMAPI or OutlookSpy, do you see
PR_RCVD_xxx and PR_RECEIVED_BY_xxx properties?
If the NDs come as attachments, why can't you see who the sender of that
parent message is?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hi Dmitry,

Yes I see those properties (PR_RCVD_xxx and PR_RECEIVED_BY_xxx) in
Outlook SPY. I am in an exchange environment and how would I get the
SMTP address of the actual sender of the NDR and the recipient of the
NDR.

Do you have any samples of how I may be able to get at the SMTPaddress
for these.

As I mentioned, these attachments have been removed from the original
e-mail and are in an Outlook folder now.

Thanks,
neil.
 
Use the value of PR_RECEIVED_BY_ENTRYID to call IAddrBook::OpenEntry (get
back IMailUser), then retrieve the PR_SMTP_ADDRESS or
PR_EMS_AB_PROXY_ADDRESSES properties.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top