Deleting sent items from outlook 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

We have some business analysis software running that sends data out to our
salespeople by e mail attatchment, the largest being 7mb. I need to be able
to delete these e mails automatically once they have been sent, firstly from
sent items and then from deleted items.

I have tried using rules but with no success.

Any help would be greatly appreciated.

Many thanks
 
Hello Curtis,
You can also try this

Const olFolderSentMail = 5

Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")

Set objFolder = objNamespace.GetDefaultFolder(olFolderSentMail)

Set colItems = objFolder.Items

For i = colItems.Count to 1 Step - 1
colItems(i).Delete
Next


Regards,
nana
 
Back
Top