Don't save to SaveSentMessageFolder

H

Helmut Weber

Hi everybody,
I am looking for a way, to prevent saving of
sent messages in the SaveSentMessageFolder,
that is switching this option off
and after a larger mailing action,
switching it on again.
 
H

Helmut Weber

Some more info:
of course I can set the option to off via the user
interface, but it has no effect when sending mails
programmatically.
 
K

Ken Slovak - [MVP - Outlook]

You could set the .DeleteAfterSubmit Boolean property on each mail item you
are sending out. That will delete the item after you send it and won't save
it in Sent Items. If you want the item saved to a different folder and not
to Sent Items you can set the .SaveSentMessageFolder property to a different
MAPIFolder object before you send out the email.
 
H

Helmut Weber

Hi Ken,
may I bother you once more.
Do you think it is possible, to keep a record
of sent items, without storing the items themself,
just to, topic, date, time,
or at least without the attachments?
By the way, I am automating outlook by lotus script,
which is very similar to vba.
Thank you.
 
K

Ken Slovak - [MVP - Outlook]

You could trap Application_Send, and gather the information you wanted to
store in that event handler.
 
Top