Originally posted by KubiaK
This might work with Outlook, but do you know if there's an equivalent for Outlook Express ?
Maybe this, but I'm not sure, because I'can test it (MAPI.Session class is not installed...) (NT4) I tried to registery the cdo.dll but nothing happens; at other machine (W98ME) call the outlook MAPI so if you have installed outlook wich overwrites the express MAPI functions I don't know how can you reach the express, somebody any idea?:
DEFINE VARIABLE hComSession AS COM-HANDLE.
DEFINE VARIABLE hAEntry AS COM-HANDLE.
DEFINE VARIABLE hAEntries AS COM-HANDLE.
CREATE "MAPI.Session" hComSEssion.
hComSession:logon("", No, Yes, 0).
hAEntries = hComSession:AddressLists(1):AddressEntries.
hAEntry = hAEntries:GetFirst.
IF hAEntry = 0 OR
hAEntry = ? THEN RETURN.
REPEAT:
MESSAGE hAEntry:NAME " - "hAEntry:Address VIEW-AS ALERT-BOX.
.
ASSIGN hAEntry = hAEntries:GetNext.
IF hAEntry = 0 THEN LEAVE.
END.
hComSession:LogOff.
RELEASE OBJECT hComSession.
Regards,
Viktor