Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Back to VFP, so Outlook OLE hints requested
Message
From
20/07/2000 10:25:48
 
 
To
19/07/2000 16:50:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00393971
Message ID:
00394891
Views:
11
loApp = creat('outlook.application')
lospace = loapp.getnamespace("MAPI")


for each lofolder in lospace.folders
* ?lofolder.name
for each losubfolder in lofolder.folders
* ?"--"+losubfolder.name
if upper(losubfolder.name) = "OUTBOX"
loOutbox = losubfolder
loMessage = loOutBox.items.add()
exit
endif
endfor
endfor

if vartype (loOutbox) = "O" and vartype(loMessage) = "O"
*?"found Outbox"
*lomessage = loOutbox.items.add()
with lomessage
.body = tcBody
.subject = tcSubject
.recipients.add(tcRecipient)
.send()
* ?"message sent"
endwith

endif


Hope this could help :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform