Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook/redemption not sending emails
Message
From
11/11/2002 11:16:49
 
 
To
09/11/2002 12:18:55
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00720652
Message ID:
00721068
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform