Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook Integration Problem
Message
De
22/01/2008 16:16:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01284036
Message ID:
01284265
Vues:
17
Sounds like the issue where MSMAPI controls must be subclassed, then placed on your mail form.


>Hello All,
>
>I wrote a standalone EXE, stealing some sample code from Craig Boyd, to send email through Outlook using MAPI. While I was testing, it seemed to work just fine, but when in regular use I get an error saying it can't establish a session, but outlook is open.
>
>Here is a code snippit
>
>loSession = CREATEOBJECT( "MSMAPI.MAPISession" )
>loSession.Signon()
>IF (loSession.SessionID > 0)
> loMessages = CREATEOBJECT( "MSMAPI.MAPIMessages" )
> loMessages.SessionID = loSession.SessionID
>ENDIF
>loMessages.Compose()
>
>Works fine until it fails, after it fails, it continues to fail until I reboot, not even closing and reopening Outlook fixes it. I need to have the email go through the client so the email shows up in the users set folder.
>
>Any suggestions on where the problem lies or how to fix it would be appreciated.
>
>Thanks in advance
>
>Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform