How can I tell when .Send is done in Outlook ?

J

Jim Plante

I am using MS Visual FoxPro to send an email message with attachments via
OutLook 2000.
After sending the email, how can i tell when it done sending the message ?
My code seems to closing Outlook almost immediately after it issues the
..Send, as below:

oOutLook = CREATEOBJECT("Outlook.Application")
oMailItem = oOutlook.CreateItem(0)
....
....
....
oMailItem.Send
oOutlook.Quit

The problem is that the email sits in the outbox. it seems outlook quits
before its done sending the message because of the size of the message (has
like 7 .jpg's attached).

Is there a way to check outlooks status to see if its still "busy" ?

thanks,

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top