General information
Category:
Third party products
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only