Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook 2003 attachments
Message
 
To
08/10/2004 01:19:06
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00949797
Message ID:
00949807
Views:
15
Hi Goran,
lcPath="c:\temp\" && Output folder

objSession = CreateObject("MAPI.Session")
objSession.Logon("Your MAPI profil")

loFolder=loSession.InfoStores.Item("Your root Folder (Inbox, etc.)").RootFolder

loMessage = loFolder.Messages.GetFirst()

FOR lii=1 TO loMessage.Attachments.Count
    loAtt=loMessage.Attachments.Item(lii)
    loAtt.WriteToFile(lcPath+loAtt.Name)
NEXT
objSession.Logoff()
MartinJ

>Hi, all
>
>I have lots of email messages in one outlook folder. Every message has 2 attachments (2 .txt files). I need to save all attachments in some folder from VIsualFoxPro (7,8), or is it maybe better solution to use some export from outlook?
>
>TIA
>Goran
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform