Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting an email in Outlook 2K
Message
From
03/11/2000 18:17:03
 
 
To
03/11/2000 18:06:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00437888
Message ID:
00437894
Views:
22
>>I'm reading through the items() collection in outlook and saving attached files, etc. However, I'm not having much luck deleting the emails once they are processed. I would also like to know how to move them to another folder. Anyone out there got a few spare lines of code?< G >
>
>e.g., say, oItem is the e-mail item
>oItem.Delete()
>should do it.

oh, yeah, moving it...

You need to get an object reference to the folder you want to move it to.
e.g. assuming you have a reference to the Inbox already, called oInbox,
and you know the folder is called "Moved From Inbox" and it's in the same Mailbox as Inbox...

oMoved = oInbox.Parent.Folders("Moved From Inbox")
oItem.Move(oMoved)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform