Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Outlook Mail via VFP
Message
From
01/05/2000 16:51:20
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00364632
Message ID:
00364901
Views:
32
Hi John,

I have code here in the Files section that does pretty much the same thing. It's called ROC (Raid on Contacts), in case anyone is to lazy to cut-and-paste code :-)


>
>
>#Define olFolderContacts	10
>oOutlook = createobject("outlook.application")
>oNameSpace = oOutlook.GetNameSpace("MAPI")
>oContacts = oNameSpace.GetDefaultFolder(olFolderContacts).Items
>count = 0
>create cursor contacts ;
>   (fullname c(50),email1address c(50))
>For Each Contact In oContacts
>   m.fullname      = contact.fullname
>   m.email1address = contact.email1address
>   Insert Into Contacts From Memvar
>Next Contact
>
>
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform