Page 1 of 1

How get message from dbx (Outlook Express)

PostPosted: Wed Apr 18, 2007 5:40 pm
by Romeo
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

Re: How get message from dbx (Outlook Express)

PostPosted: Wed Apr 18, 2007 9:20 pm
by Enrico Maria Giordano
Code: Select all  Expand view
#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

PostPosted: Wed Apr 18, 2007 11:40 pm
by James Bott
Enrico,

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

James

PostPosted: Thu Apr 19, 2007 8:28 am
by Enrico Maria Giordano
No, sorry. I missed it. :(

EMG

PostPosted: Thu Apr 19, 2007 2:56 pm
by James Bott
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