Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI produces exception error
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
MAPI produces exception error
Divers
Thread ID:
00221158
Message ID:
00221158
Vues:
42
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform