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

SMTP address of Exchange recipient



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 8th 07, 04:59 PM posted to microsoft.public.outlook.program_vba
Bill
external usenet poster
 
Posts: 31
Default SMTP address of Exchange recipient

I have Googled this forum and found near-matches to this request, so I
apologize if it's been answered to death. I have multiple email addresses
in my Exchange account here. If I receive an email from outside our domain,
is it possible for me to know if it was sent it to or
, or ?

Thanks,

Bill Le May
Outlook 2003


Ads
  #2  
Old August 8th 07, 06:56 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default SMTP address of Exchange recipient

I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).

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

"Bill" wrote in message
...
I have Googled this forum and found near-matches to this request, so I
apologize if it's been answered to death. I have multiple email addresses
in my Exchange account here. If I receive an email from outside our domain,
is it possible for me to know if it was sent it to or
, or
?

Thanks,

Bill Le May
Outlook 2003



  #3  
Old August 8th 07, 07:38 PM posted to microsoft.public.outlook.program_vba
Bill
external usenet poster
 
Posts: 31
Default SMTP address of Exchange recipient

"Dmitry Streblechenko" wrote...

I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).


Thank you Dmitry. I would like to use that property to create a View or
Filter that will show me emails addressed to one specific email address.
Is it possible to specify this property as a search criteria in a DASL View
Filter?


  #4  
Old August 8th 07, 07:49 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default SMTP address of Exchange recipient

No, the address is not stored as a separate property.
You should however be able to create a rule that checks for a particular
substring ") in the transport mesage headers and sets a
property that you can use in a view or in a filter.
I have a bunch of rules that move messages to separate folders based on an
address in the transport header.

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

"Bill" wrote in message
...
"Dmitry Streblechenko" wrote...

I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).


Thank you Dmitry. I would like to use that property to create a View or
Filter that will show me emails addressed to one specific email address.
Is it possible to specify this property as a search criteria in a DASL
View Filter?



  #5  
Old August 8th 07, 08:25 PM posted to microsoft.public.outlook.program_vba
Bill
external usenet poster
 
Posts: 31
Default SMTP address of Exchange recipient


"Dmitry Streblechenko" wrote in message
...
No, the address is not stored as a separate property.
You should however be able to create a rule that checks for a particular
substring ") in the transport mesage headers and sets a
property that you can use in a view or in a filter.
I have a bunch of rules that move messages to separate folders based on an
address in the transport header.


I thought that since the SQL tab in Filters can specify criteria like this:
(
("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b"= 0)that I could do something similar to find the To field.

  #6  
Old August 8th 07, 08:44 PM posted to microsoft.public.outlook.program_vba
Bill
external usenet poster
 
Posts: 31
Default SMTP address of Exchange recipient

OK, here's what I put in the SQL tab:

"http://schemas.microsoft.com/mapi/proptag/0x007D001E" LIKE '%bill.lemay%'

This appears to work.

Thanks,

Bill Le May


 




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
Can't get SMTP address of contact that shares email address of an Exchange user Jeff Outlook and VBA 14 January 15th 09 01:50 AM
exchange and outlook smtp/pop accounts [email protected] Outlook - General Queries 3 July 30th 07 01:19 PM
Exchange, Outlook and SMTP programming with CDO Sachin Outlook and VBA 1 April 19th 07 03:43 PM
Recipient.Address in Exchange Server Joel Outlook and VBA 3 December 8th 06 05:52 AM
Expired messages are deleted by the recipient OL or Exchange? Lucas Campos Outlook - General Queries 4 October 30th 06 08:43 PM


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


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