A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retriving a Failed Recipient' email address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 16th 08, 07:12 PM posted to microsoft.public.outlook.program_vba
Art
external usenet poster
 
Posts: 11
Default Retriving a Failed Recipient' email address

I am just wondering if there is a small VBA routine for Outlook 2003 that
will help me to automatically "reterive" (saving in it on an EXCEL file) a
Failed Recipient' email address. The bounced emails will be "manually"
re-located on a separate Inbox' folder. Thank you.
Ads
  #2  
Old December 16th 08, 07:42 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Retriving a Failed Recipient' email address

Usually the body of the NDR will have the original target address, but the
format of that or even if it's there at all depends totally on the server
returning the NDR. So it's not constant or even very predictable. You'd have
to aggregate a bunch of NDR's to see what you get from them.

Some may be "official" NDR's which would be MessageClass ==
"REPORT.IPM.Note.NDR. Other cases will be just standard email MessageClass
== "IPM.Note". So you can't even rely on any ReportItem properties being
there.

The From address of the sender of the NDR won't help because it comes from
the server which has its own address it uses for NDR's.

So about all you can do is try to come up with some algorithm to extract the
many possible ways the address is there or use manual intervention.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Art" wrote in message
...
I am just wondering if there is a small VBA routine for Outlook 2003 that
will help me to automatically "reterive" (saving in it on an EXCEL file) a
Failed Recipient' email address. The bounced emails will be "manually"
re-located on a separate Inbox' folder. Thank you.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Default Display Both Email Address and Recipient NameAutomatically In Outlook 2007? Fletch Outlook - Using Contacts 7 April 14th 08 08:30 PM
trying to get recipient email address TMJNSK Outlook and VBA 0 October 15th 07 07:48 PM
How to retrieve an email address from an appointment recipient? Marcus Outlook - Using Forms 1 April 4th 07 01:56 PM
Outlook 2000 Faxes not queuing - The Microsoft Fax transport failed to deliver the message to the recipient. SteveMc Outlook - General Queries 3 December 19th 06 09:04 PM
Help! outlook keeps deleting recipient email address... networm Outlook - General Queries 2 March 8th 06 08:05 AM


All times are GMT +1. The time now is 02:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.