Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE error code 0x80080005: Server execution failed
Message
De
19/10/2001 10:39:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
OLE error code 0x80080005: Server execution failed
Divers
Thread ID:
00570847
Message ID:
00570847
Vues:
264
hey everyone,
sorry about the last one. i was about to paste the code in and hit the return twice. here is the code i have that results in the OLE error:

Private strProfile, ;
strPassword , ;
strRecipient , ;
strBody

strProfile = "myusername"
strPassword = "mypassword"
strRecipient = "myemail"
strSubject = "Test object mail"
strBody = "this is the message"

theApp = CreateObject("Outlook.Application")
theNameSpace = theApp.GetNameSpace("MAPI")
theNameSpace.Logon(strProfile , strPassword)
theMailItem = theApp.CreateItem(0)
theMailItem.Recipients.Add( strRecipient )
theMailItem.Subject = strSubject
theMailItem.Body = strBody
theMailItem.Send
theNameSpace.Logoff

i get this error when i run the code. i got this code from the faq section of the thread.

OLE error code 0x80080005: Server execution failed

I have set the controls to MAPI Messages Control and MAPI Session Control. Do i need to set anything else? Do you have any idea why I might be getting this error? Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform