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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve smtp mail address from an ex address (exchange)

Status
Not open for further replies.

martine

Technical User
Jan 15, 2001
32
CA
Hello

I'm doin' some outlook programming where I want to retrieve a smtp mail address from an Ex address (exchange). Microsoft Exchange doesnt show the actual address, instead it only shows the name of the person. How can that be done?

Example:
Set objOutlook = CreateObject("Outlook.Application")
Set nms = objOutlook.GetNamespace("MAPI")
Set fldContacts = nms.GetDefaultFolder(olFolderContacts)
Set itms = fldContacts.Items

'Create a contact item
Set itm = itms.Add("IPM.Contact")
For Each itm In itms
'gets only smtp addresses no Ex addresses
strEmail = itm.email1address
Next

Thanks in advance
Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top