General information
Category:
COM/DCOM and OLE Automation
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only