Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Items of Mail in Outlook
Message
From
27/04/2001 08:18:43
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
 
 
To
25/04/2001 06:21:12
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00499468
Message ID:
00500567
Views:
23
This message has been marked as the solution to the initial question of the thread.
Mike,

Is this useful?
LOCAL lo, loSpace, loInbox
lo = CREATEOBJECT( "Outlook.Application" )
loSpace = lo.GetNameSpace( "MAPI" )
loInbox = loSpace.GetDefaultFolder( 6 )  && The default Inbox folder
loDeletedItems = loSpace.GetDefaultFolder( 3 )  && The default Deleted Items folder
FOR EACH loMsg IN loInbox.Items

  *** put any conditions in here

  loMsg.Move( loDeletedItems )
ENDFOR
Regards

Paul

>I am writing an application that passes DBF files backwards and forwards as attachments in Outlook mail.
>
>I am using Nigel Coates Outlook class for this.
>
>After my app has succesfully imported the the attached DBF(s) I want to delete the email that they arrived in.
>
>I presume this is handled by some sort of move command, to move the mail the deleted folder in Outlook.
>
>Does anyone know how to do this.
>
>Many Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform