Read email from subfolder

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Read email from subfolder

Post by Marc Vanzegbroeck »

Hi,

I can read the mails from outlook from the inbox with

Code: Select all

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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Read email from subfolder

Post by Marc Vanzegbroeck »

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
Post Reply