Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI produces exception error
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MAPI produces exception error
Miscellaneous
Thread ID:
00221158
Message ID:
00221158
Views:
43
I'm having trouble getting MAPI to operate properly with our GroupWise client.

When I run MAPI from VFP6, I get an 'Ole Exception Error' at c00000005. MSKB only lists an error of this type for the ImageList OCX (but no solution).

I'm using the code from the site of one of the contributors here on the UT:

activate window "debug output"
* simple test email program using MAPI
oleMAPISession = createobject( "MSMAPI.MAPISession.1" )
* Signon to mail
with oleMAPISession
.LogonUI = .F.
.UserName = "Michael Hogan"
.Password = ""
.Signon()
* Check the SignOn status
if ( .SessionID > 0 )
oleMAPIMessages = createobject( "MSMAPI.MAPIMessages.1" )
* tell the message the SessionID
oleMAPIMessages.SessionID = .SessionID
debugout "Successful mail log on"
else
debugout "Mail login failed"
return
endif
endwith
* Send an email
with oleMAPIMessages
.Compose()
* Set the Recipient name and resolve
.RecipDisplayName = "i:MichaelHogan@worldnet.att.net"
.RecipType = 1
.ResolveName()
.MsgSubject = "This is the Subject"
.MsgNoteText = "This is the email text"
.Send( .f. )
endwith

TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform