Help!

Recipient's SMTP address

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  Macro commands to assign colors to each line in a..  
Author Message
VictorL
External


Since: Jul 02, 2009
Posts: 1



PostPosted: Thu Jul 02, 2009 11:53 am    Post subject: Recipient's SMTP address
Archived from groups: microsoft>public>outlook>program_vba (more info?)

'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 jdoe.RemoveThis@company.com”


Thank you,
Victor
Back to top
Dmitry Streblechenko
External


Since: Nov 23, 2003
Posts: 1400



PostPosted: Thu Jul 02, 2009 11:49 pm    Post subject: Re: Recipient's SMTP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.PrimarySMTPAddress 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" <VictorL.DeleteThis@discussions.microsoft.com> wrote in message
news:F2E4A93F-B274-45C0-AFA2-61F4F0860FDD@microsoft.com...
> '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 jdoe.DeleteThis@company.com"
>
>
> Thank you,
> Victor
>
>
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum