Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What do I need to do to get MAPI working on clients PC's?
Message
De
10/03/2003 23:46:42
Russell Honnor
Datasure Management Systems Ltd
Auckland, Nouvelle Zélande
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
What do I need to do to get MAPI working on clients PC's?
Divers
Thread ID:
00764059
Message ID:
00764059
Vues:
86
I have a VFP app that I need to send email from. I have created a simple MAPI class to do this and it all works fine, until I try and run it on another PC.

On my other (non-developer) PC I have Outlook 2000 ( i.e. office outlook - not outlook express) installed - and VFP runtime files.

When I try and create the Mapi Object via:
this.Ole_mapi_session = newobject("MSMAPI.MAPISession.1")
this.Ole_mapi_messages = newobject("MSMAPI.MAPIMessages.1")
I get a message about the class not being available.

Further investigation reveals that there is no registry entry for MSMAPI32.OCX in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
and in fact no MSMAPI32.OCX file !

I have tried copying the MSMAPI32.OCX into the application directory (to avoid DLL hell) but it still doesnt work.

We have a mixture of clients who will want to use differing email clients: Outlook / Outlook-Express / Express-it / Novell Groupwise / who-knows-what. And some may not have outlook ( i.e. creatobject("outlook.application") ... etc is not a viable solution.)

My understanding is that the email client should be installing the Mapi stuff - and that Mapi should be available to my VFP app after any email client has been installed. (or should it ?)

Qns:
1. What am I doing wrong ?
2. What do I need to do in my rollout of the application (without mucking up the users current email client/preferences)?
3. Will this work for Outlook express users ?

Thanks for any help.
Regards
Russ
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform