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

Recipient's SMTP address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 2nd 09, 07:53 PM posted to microsoft.public.outlook.program_vba
VictorL
external usenet poster
 
Posts: 1
Default Recipient's SMTP address

'Hello,

I’m writing script for Outlook 2003 that has to check recipients SMTP
address. Most recipients are in the Exchange’s GAL.

To: string looks like this: To: John, Doe; Jane, Brown

I need to get Recipient’s primary SMTP address from address book, and if
this is possible other e-mail addresses as well.
What I expect to receive: “John, Doe’s address is


Thank you,
Victor



  #2  
Old July 3rd 09, 07:49 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Recipient's SMTP address

Firstly, instead of reading the To property, you need to loop through the
Recipients collection.
Secondly, ff you were using Outlook 2007, you could read the
Recipient.AddressEntry.GetExchangeUser.PrimarySMTP Address property.
In older versions of Outlook your only choice is either Extended MAPI (C++
or Delphi) or plug Redemption (url below) which exposes
AddressEntry.SmtpAddress property/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"VictorL" wrote in message
...
'Hello,

I'm writing script for Outlook 2003 that has to check recipients SMTP
address. Most recipients are in the Exchange's GAL.

To: string looks like this: To: John, Doe; Jane, Brown

I need to get Recipient's primary SMTP address from address book, and if
this is possible other e-mail addresses as well.
What I expect to receive: "John, Doe's address is "


Thank you,
Victor





 




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
Reading SMTP address from Exchange Sender mail address VebKol Outlook and VBA 4 March 6th 09 04:08 PM
Can't get SMTP address of contact that shares email address of an Exchange user Jeff Outlook and VBA 14 January 15th 09 12:50 AM
550 Spam check failed for recipient's address lkinninmont Outlook - Installation 3 February 13th 07 05:07 AM
޷ҵSMTPķǷȷ ʻ: 'POP3', : 'SMTP', Э: SMTP, ˿: 25, ȫ(SSL): , ׽ִ: 11001, : 0x800CCC0D John Smith Outlook Express 0 September 5th 06 01:15 AM
޷ҵsmtpķǷȷ ʻ: 'pop3', : 'smtp', Э: SMTP, ˿: 25, ȫ(SSL): , ׽ִ: 11001, : 0x800CCC0D Outlook Express 0 June 17th 06 09:44 AM


All times are GMT +1. The time now is 12:26 PM.


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.