Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a session of Outlook from Foxpro
Message
From
20/06/2002 10:37:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Creating a session of Outlook from Foxpro
Miscellaneous
Thread ID:
00670631
Message ID:
00670631
Views:
38
I am using Outlook to send mail from my foxpro application.
However if the user does not have outlook opened they are served an error from outlook "Do not have permssion to do this operation".
How do I trap that error, or how do I force my program to open up a session of outlook?
this is the code i am using:

#INCLUDE outlook.h
oOutLookObject = CreateObject("Outlook.Application")
oEmail = oOutLookObject.createItem(0)
WITH oEmail
.to = "test@test.com"
.Body="test"
.subject="test"
.send
ENDWITH

I would appreciate any help with this.
Thanks.
Shevy
Next
Reply
Map
View

Click here to load this message in the networking platform