Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a session of Outlook from Foxpro
Message
De
20/06/2002 10:37:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Creating a session of Outlook from Foxpro
Divers
Thread ID:
00670631
Message ID:
00670631
Vues:
39
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform