FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Read email from subfolder
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Read email from subfolder
Posted: Wed Jun 12, 2019 08:20 AM
Hi,

I can read the mails from outlook from the inbox with
Code (fw): Select all Collapse
oOL := TOleAuto():New( "Outlook.Application" )

oNameSpace = oOL:Get( "GetNameSpace", "MAPI" )
oInbox = oNameSpace:Get( "GetDefaultFolder", "6" ) // 6 = Inbox-Folder


But how can I read it from a subfolder from the inbox?
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Read email from subfolder
Posted: Wed Jun 12, 2019 10:54 AM

I found it, the problem isthat I have multiple accounts in outlook, and it was searching in the wrong account.
How can I define the Get( "GetDefaultFolder", "6" ) from a specific account?

Thanks,

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion