MailItem Close Event
Just to give you a better idea of what I'm trying to accomplish, I'm
creating a new e-mail and populating the subject, body, etc., then
displaying it on-screen. I then need to wait (indefinitely) until one of
three things occurs, and determine with absolute certainty which one it was:
the e-mail is sent; the e-mail is saved but not sent, the e-mail is
cancelled without being saved or sent.
It's those last two that're causing the big headache, since the Close event
happens before the Save Yes/No/Cancel question is asked. That means I have
no way of determining what actually happened to the outgoing e-mail after
that point.
I've tried monitoring the "BeforeDelete" event, but it doesn't fire if the
message is new (whether or not I save it before-hand).
Thanks,
Rob
|