Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a session of Outlook from Foxpro
Message
 
 
To
20/06/2002 10:37:46
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00670631
Message ID:
00670796
Views:
17
Try to add
>oOutLookObject = CreateObject("Outlook.Application")
* Get Namespace
oNameSpace = oOutlookObject.GetNameSpace("MAPI")
* If it doesn't help, try to login using following line
*oNameSpace.Logon("ProfileName", "Password")
...
>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform