Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook/redemption not sending emails
Message
De
11/11/2002 11:16:49
 
 
À
09/11/2002 12:18:55
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00720652
Message ID:
00721068
Vues:
12
>Using Visual Foxpro 7 and Outlook XP (with XP pro), I am creating email messages and sending them to the Outbox, but they are not actually being sent unless I go to the folder and send them manually. Is there any way to ensure that the emails are sent automatically?


This is based on the Outlook settings; I don't know of a way to affect it programmatically.

>As a workaround, I thought of programmatically closing Outlook, then opening it again to make it appear as if it had been opened manually. That didn't work either. The additional code was as follows...
>
>STORE .NULL. TO oOutLook, oMailItem, oSafeItem
>RELEASE oOutLook,oSafeItem, oMailItem
>
>* Reopen Outlook
>oOutLook = CREATEOBJECT('Outlook.application')
>

There's nothing in this code that closes Outlook. Releasing your object reference doesn't close it. You need:

oOutlook.Quit()

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform