Save Message after it was sent?

M

Mike Gahn

Hi!

I´m running crazy with this problem. I need to save Mails in Filesystem
AFTER they where sent. If i save before and later open the .msg file, it is
marked as unsend. I want to prevent the user from sending it again and to be
confused about this.
BUT: After the mail is sent, there is not access to the MailItem object
possible (Runtime Error "Item has moved ..").
No Events are fired before the massage is deleted or moved to the sent
folder. The ID is not unique over all folders, so that i cant find it any
more (only by iterating through the sent mail folder and comparing e.g.
body)
i´ve never seen something stupid like this.

Is there any vb(a)/outlook-crack out there who knows a hack?

Thanks, Mike.
 
K

Ken Slovak - [MVP - Outlook]

Use the ItemAdd event for the Items collection of the Sent Items
MAPIFolder. That will give you an event when any item is added to that
folder. In your event handler you can do whatever you want.

See http://www.slipstick.com/dev/code/zaphtml.htm#cw for an example of
an ItemAdd handler for the Inbox. You can use that as a model for your
code.
 

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