I want to read the messages in the inbox of Outlook or direct
from the pop server .
I want also to save the attached files (if present) in a defined folder .
I want to do that with a Fivewin program .
Thanks
Ph Jacquet (Belgium)
I want to read the messages in the inbox of Outlook or direct
from the pop server .
I want also to save the attached files (if present) in a defined folder .
I want to do that with a Fivewin program .
Thanks
Ph Jacquet (Belgium)
#define olFolderInbox 6
FUNCTION MAIN()
LOCAL oOutlook := CREATEOBJECT( "Outlook.Application" )
LOCAL oNameSpace := oOutlook:GetNameSpace("MAPI")
LOCAL oInbox := oNameSpace:GetDefaultFolder( olFolderInbox )
LOCAL i
FOR i = 1 TO oInbox:Items:Count
? oInbox:Items[ i ]:Body
?
NEXT
oOutlook:Quit()
RETURN NILMr.James,
Is there a similar way to read messages from Outlook Express ?
No, OE isn't an OLE server.
EMG
James,
How can we handle attachments in your example ?
Thanks.
Regards,
Michel D.
Genk (Belgium)
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773
Michel,
>How can we handle attachments in your example ?
I don't know, I have never used it. You probably need to look at the Outlook OLE documentation.
James