Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
OLE error code 0x80080005: Server execution failed
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement