Help Me!! I have problems with CDO!!
Hi!
I have a VB ActiveX class that send Exchange mail in the corporate and has no trouble, but when I use a ASP class with the same instructions obtain this:
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]
This is the code:
Class Conection
Public Profile, Recipient, Subject, Message, Server
Private Sub Class_Initialize()
Name = "Conection"
Version = "1.0"
End Sub
Public Sub Enviar()
Dim objSession 'As MAPI.Session
Dim objOutBox ' As Folder
Dim objNewMessage ' As Message
Dim objRecipients ' As Recipients
Dim objRecipient ' As Recipient
Set objSession = Server.CreateObject("MAPI.Session")
objSesion.Logon Profile,,,,,True
Set objOutBox = objSession.Outbox
Set objNewMessage = objOutBox.Messages.Add
Set objRecipients = objNewMessage.Recipients
Set objRecipient = objRecipients.Add
With objRecipient
.Name = Recipient
.Type = 1
.Resolve ' ***** THERE IS THE ERROR *****
End With
With objNewMessage
.Subject = Subject
.Text = Message
.Send
End With
End Sub
End Class
I comprobate that the login and the Recipient exist in the domain because I can send mail with my DLL and there is no problem.
NOTE: When I use The same DLL in ASP I have LOGIN FAILED error.
Please Can you Help Me ????