>Point 2 - What is the error? There is not enough information to be able to answer this.
>>2-
>>In other environment (when the same application is connected to a network, including an mail server), I got an error message from this ocx about "Error login".
>>Do I have to manage someting about the security into that ocx?
>>Thanks!
Some of my code here:
THIS.oSession.NewSession = .T.
THIS.oSession.UserName = "user"
THIS.oSession.Password = "pass"
THIS.oSession.REFRESH()
THIS.oSession.SignOn <--- Debugger show this line as an error
THIS.oMessage.SessionID = THIS.oSession.SessionID
THIS.oMessage.Compose
THIS.oMessage.MsgSubject = "Subject line here"
THIS.oMessage.MsgNoteText = cString
THIS.oMessage.RecipDisplayName = "
email@email.com"
THIS.oMessage.Send(0)
THIS.oSession.SignOff
The error message is: "OLE IDispatch exception code 0 from MapiSession: Login has failed.."
?????
Thanks again!