Information générale
Titre:
What do I need to do to get MAPI working on clients PC's?
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
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