Thanks, John! I appreciate the nudge in the right > direction.
How can I go about creating a list of all users in the Address Book?
-- Gerry
>Hi Gerry,
>
>This is code I use to validate a name. If it can find the name, it pops up the Properties inspector for that contact. If not, it pops up the explorer showing all entries.
>
>The downside is that it has to exactly match....Outlook does not have a very good way to do fuzzy matching.
>
>oOlApp = CreateObject("Outlook.Application")
>oOlNS = oOlApp.GetNameSpace("MAPI")
>oOlC = oOlNS.GetDefaultFolder(10)
>
>cFind="John Smith"
>oItem=olC.Items.Find('[FullName] = "&cFind"')
>IF !ISNULL(oItem)
> oItem.GetInspector
> oItem.Display
>ELSE
> oExplorer=olC.GetExplorer
> oExplorer.Display
>ENDIF
>
>
>>Thanks to all who have given code snippets for sending email from within VFP. I've got that working fine in my application.
>>
>>HOWEVER, I'd like to validate the email address entered, or give the user a combo box picklist. How do I access the Outlook Address Book in detail?
>>
>>Please don't ask me to look at win32api.hlp, unless it's on the web somewhere. It didn't get installed with VFP 6.0a.
>>
>>Thanks!
>>- Gerry
** Gerry White / Hagerstown, MD, USA --
** Developing since 1986 in Foxpro, VFP, Oracle, and Java.
**
http://GerrysPlace.com