FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How get message from dbx (Outlook Express)
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
How get message from dbx (Outlook Express)
Posted: Wed Apr 18, 2007 05:40 PM

Hi, any idea how get (with fwin) any single message from a DBX file of Outlook Express ?

I need it to get and process many many emails message in automatic mode using fwin
tks
Romeo/Zingoni

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How get message from dbx (Outlook Express)
Posted: Wed Apr 18, 2007 09:20 PM
#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()

    INKEY( 0 )

    RETURN NIL


EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How get message from dbx (Outlook Express)
Posted: Wed Apr 18, 2007 11:40 PM

Enrico,

He specified Outlook Exrpess. Will your code work with it?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
How get message from dbx (Outlook Express)
Posted: Thu Apr 19, 2007 08:28 AM

No, sorry. I missed it. :(

EMG

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How get message from dbx (Outlook Express)
Posted: Thu Apr 19, 2007 02:56 PM

Romeo,

If the mail is coming off a POP3 server, then perhaps you can get the mail directly using TPop3. See samples\testpop3.prg.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion