Information générale
Catégorie:
COM/DCOM et 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement