Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI and Lotus Notes - HOWTO?
Message
From
16/06/1999 02:17:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MAPI and Lotus Notes - HOWTO?
Miscellaneous
Thread ID:
00230295
Message ID:
00230295
Views:
168
Hi, All!

When I try to work with MAPI controls with MS Exchange Server, everything works fine. With Lotus Notes, while the Windows' 'Inbox' works OK (logs on, shows messages etc.), my application logs on fine, but when I try to read messages (either only new, or all of them) I get error messages.

Here is the code:

* oApp object of custom class with properties mapMess and mapSess
oApp.mapMess = CreateObject('MSMAPI.MAPIMessages.1')
oApp.mapSess = CreateObject('MSMAPI.MAPISession.1')
...
* Logon works fine
oApp.mapSess.NewSession = .T.
oApp.mapSess.UserName = "MS Exchange Settings"
oApp.mapSess.PassWord = ""
oApp.mapSess.SignOn() && Signon method.

oApp.mapMess.SessionID = oApp.mapSess.SessionID
...

* Check for messages
...
* Fetch unread messages only
With oApp.mapMess
.FetchUnreadOnly = .T.

.Fetch && <===== error 32002: Unspecified failure has occurred

EndWith
...

...
* Read all the messages
With oApp.mapMess
.FetchUnreadOnly = .F.

.Fetch && <===== error 32026: Not supported

EndWith
...


Is there anything special I have to install or define, so that my app will work with Lotus Notes?

Plese help!

TIA,
Uri Shohet.
Reply
Map
View

Click here to load this message in the networking platform