Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
MAPI and Lotus Notes - HOWTO?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement