Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
n777krish@gmail.com - 21 May 2007 06:17 GMT
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.
Dmitry Streblechenko - 21 May 2007 18:48 GMT
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 all,
>
[quoted text clipped - 8 lines]
> Thanks for any insight.
> Neil Goundar.
n777krish@gmail.com - 21 May 2007 23:47 GMT
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.

> 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
[quoted text clipped - 22 lines]
>
> - Show quoted text -
Dmitry Streblechenko - 22 May 2007 00:37 GMT
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,
>
[quoted text clipped - 47 lines]
>>
>> - Show quoted text -
n777krish@gmail.com - 22 May 2007 07:48 GMT
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.

On May 22, 11:37 am, "Dmitry Streblechenko" <dmi...@dimastr.com>
wrote:
> 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
[quoted text clipped - 62 lines]
>
> - Show quoted text -
Dmitry Streblechenko - 22 May 2007 17:52 GMT
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,
>
[quoted text clipped - 82 lines]
>>
>> - Show quoted text -
n777krish@gmail.com - 23 May 2007 08:01 GMT
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.

> When you look at these NDRs with MFCMAPI or OutlookSpy, do you see
> PR_RCVD_xxx and PR_RECEIVED_BY_xxx properties?
[quoted text clipped - 97 lines]
>
> - Show quoted text -
Dmitry Streblechenko - 26 May 2007 00:54 GMT
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

> Hi Dmitry,
>
[quoted text clipped - 123 lines]
>>
>> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.