Outlook--Sending a Copy of a Message to a Specific Folder

  • Thread starter Thread starter umeshu7
  • Start date Start date
U

umeshu7

I have gone through most of the posts but have not found satisfactory
solution for the following problem:

- I want to copy the sent email to a specific folder, instead of
'Sent Items'.

I have multiple folders under "Mailbox- <user id>" tree and have
also created archive PST folders which are shown outside the
"Mailbox- <user id>" tree. I found code at the following site:
http://www.outlookcode.com/d/code/setsavefolder.htm

This does everything I want except, when I specify the pst folder, it
does not copy the sent email to the specified folder under pst folder.
If I specify folder under the "Mailbox- <user id>" tree it works
perfectly. The description states that it should work for folders and
pst files but it does not seem to work for pst folders.


Can anybody help?

Thanks

Umesh
 
Quoting from the page you cited:

The folder must be in your default information store -- Exchange mailbox or PST file. The IsInDefaultStore() function tests for this. If you need to move items to a different folder, the solution would be to use the ItemAdd event on the Sent Items folder's Items collection and move items to the desired folder. See http://www.outlookcode.com/codedetail.aspx?id=456 for a code sample that demonstrates how to work with that event.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks. But the folder is a PST folder. So how do i make the archive
PST folder in "default information store".

Umesh
 
Sorry, but your last statement seems to be missing a verb or something. Could you try to rephrase it?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks. But the folder is a PST folder. So how do i make the archive
PST folder in "default information store".

You can't make an archive folder part of the default information store
without making the entire archive PST your default store and I don't think
you really want to do that.
 
Back
Top