Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting an email in Outlook 2K
Message
De
03/11/2000 18:17:03
 
 
À
03/11/2000 18:06:30
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00437888
Message ID:
00437894
Vues:
23
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform