Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI and Lotus Notes - HOWTO?
Message
De
16/06/1999 02:17:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
MAPI and Lotus Notes - HOWTO?
Divers
Thread ID:
00230295
Message ID:
00230295
Vues:
169
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform