Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Integration Problem
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Outlook Integration Problem
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01284036
Message ID:
01284036
Views:
59
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
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Next
Reply
Map
View

Click here to load this message in the networking platform