Getting smtp address

  • Thread starter Thread starter Long Nguyen
  • Start date Start date
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
 
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
 
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).
 
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.
 
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.
 
Back
Top