Getting smtp address

L

Long Nguyen

Hi,

In my Outlook custom form, how can I get the smtp address of a given Outlook
display format address?

I got the code below:
Set olns = Item.Application.GetNameSpace("MAPI")
Set strAddrList = olns.AddressLists("Global Address List")
myemail="Nguyen, Long (CSIRO IT, St Lucia)"
Set strAddrEntry = strAddrList.AddressEntries(myemail)
msgbox strAddrEntry.Address

This displays "/o=CSIRO/ou=NEXUS/cn=Recipients/cn=ngu059", not the smtp
address which is (e-mail address removed).

Thanks
Long
 
L

Long Nguyen

I have done some searching and it seems that the only way I can get this
smtp address is to use CDO or Redemption. Never work with these software
before so my question is: if I install CDO and Redemption on my PC and use
it in my code, will my custom form users need to also install the softare in
order to use the form? (if yes then it will complicate things).

Thanks
Long
 
K

Ken Slovak - [MVP - Outlook]

Yes they will have to install one or the other. Redemption you can install
for them as part of the installer package, CDO 1.21 is not redistributable
so it has to be installed by the user from the Office CD (although there are
ways to demand install CDO it still requires access to the Office CD).
 
K

Ken Slovak - [MVP - Outlook]

No, the only way is what you were told. The properties shown in the Details
tab (and please do not post binaries to these groups) are only available
from the Fields collection of an AddressEntry and that collection is only
available with CDO 1.21 or Redemption or Extended MAPI (C++ or Delphi only)
or WebDAV if you are using Exchange 2000 or later.
 
L

Long Nguyen

Thanks Ken.
Long

Ken Slovak - said:
No, the only way is what you were told. The properties shown in the Details
tab (and please do not post binaries to these groups) are only available
from the Fields collection of an AddressEntry and that collection is only
available with CDO 1.21 or Redemption or Extended MAPI (C++ or Delphi only)
or WebDAV if you are using Exchange 2000 or later.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top