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