Prevent "Sent" message from going to Sent Items in Add-in?

B

Brian McCullough

Hello,

I have a COM Addin that is automatically sending a message on behalf of the
currently logged in user when that user clicks a button (making use of
Outlook Redemption...thanks Ken S.!)

The company recently started enforcing pretty strict limits on mail storage
and would like the message that gets sent to not go to the Sent Items
folder. When sending a message is it possible to prevent it from going to
the Sent Items folder after it has been sent? Or, if once sent, deleting it
from the Sent Items? What about when users are working off line and the
message is stored in the Outbox until a connection is re-established?

Also, when you are working offline, and you send a message, it gets stored
in the Outbox. What does the Outbox use for storage while offline? A
..pst???

TIA!!!

Brian McCullough
 
K

Ken Slovak - [MVP - Outlook]

Online and offline storage when you aren't using Exchange is always a PST
file, the same one. For Exchange mailbox users offline or cached mode uses
an OST file.

The easiest way to do what you want is to set the DeleteAfterSubmit Boolean
on the mail item before it's sent. If that property is True no copy of the
item will be saved after it's sent out.

An alternative would be to set the SaveSentMessageFolder property on the
item. That takes a MAPIFolder argument and can be set to any folder in a
mailbox or 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