Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting E-mail address from Exchange

Status
Not open for further replies.

macksta

Programmer
Aug 13, 2002
27
NZ
Hey Guys and girls,

I am trying to get e-mail address's out of exchange via VB is this possible? I have been able to get the names out however I cant seem to get there E-mail adresess.

Cheers Jamie

 
.Address instead of .Name

Are you using CDO?

Craig, mailto:sander@cogeco.ca

In the computer industry, there are three kinds of lies:
lies, damn lies, and benchmarks.
 
The Address property of the AddressEntry object always contains the Exchange Address, type "EX"

Exchange also stores e-mail addresses in several other formats such as SMTP, X400 etc. You need to use CDO 1.21 to get these via the Fields collection. Outlook's object model doesn't expose the Fields.

Return the PR_EMS_AB_PROXY_ADDRESSES field which is multivalued; you can iterate the values with a For Each block.

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top