Save sent item to windows folder or desktop

D

DStrong

I am trying to create a marco to use on the Appication_ItenSend function that
allows a user to choose if they want to save the SENT email to a predefined
windows folder. Why I need this is simple, at my work we have to attach a
sent email msg to a different database. What users are currently doing is
going into their Sent folder, opening the sent item and then running a macro
that saves the file. I would like to add a dialog msgbox that asks the user
if they want to save the sent item and decrease a few steps for them.

All users are running Win XP and Outlook 2003. Any suggestions would be
helpful.

FYI, I saw a thread that someone wanted to either save the message in their
sent forlder or to just delete it. I used that same code provided by Ken
Solvak, that code will work if I can just have outlook send the item then
save let me save it to a Windows folder.

Thanks in advance!!
 
K

Ken Slovak - [MVP - Outlook]

There's no property you can set on an item for that (there is a
DeleteAfterSubmit property that prevents the sent item from being put in
Sent Items). So you need to handle the addition of items to the Sent Items
folder (handle SentItems.Items.ItemAdd).

If your dialog gets a yes and then saves the subject and say the To property
as distinguishing characteristics in the send handler then when ItemAdd
fires you can check the item against the saved information that's stored in
a globally defined array or collection or whatever. If it matches an entry
in your list you remove it from the list and get the item and call SaveAs on
it to save it as an MSG file and then do whatever with that.

That's a rough idea of how something like that would work. You can't use the
original item's EntryID to identify the sent item since in Exchange
mailboxes the EntryID changes when an item is moved (it doesn't in a PST
file).
 

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