Guest wrote:I'd like to be able to delay closing Outlook to send the email. I've found (once I did figure out how to keep the script running; apologies on wasting your time there) Outlook closes too quickly after the email is composed and alt+s is pressed to send. This results in the email sitting in the Outbox rather than sending. I'm thinking this is a timing issue. Not sure on that though.
Is there a way to delay the closing so the email sends instead of sitting in the Outbox?
Yes, that is a quandary. I always have Outlook running so have not fooled around much with these timing issues of opening and closing Outlook. And it does appear to be a timing issue.
When Outlook is running already and will continue running, no problem.
I can also send an email completely by COM where the script is opening, composing, sending and then closing Outlook. Usually completely in the background without displaying anything.
But when you start Outlook and just display a new email dialog and then put it into the hands of the user to hit the Send button it is out of the control of the script. When that Send button is click, Outlook just puts it in the Outbox where then it is scheduled and sent at a later time. When Outlook is running normally that later time is usually a few seconds later. But in this case Outlook closes down immediatly, leaving the email in the Outbox unsent.
I will have to think about this abit. There is probably a solution but it is a pretty trick problem for such a simple seeming task as a shortcut to bring up the Outlook new email panel (when Outlook is closed).
FG