|
-
Aug 29th, 2001, 03:14 PM
#1
Thread Starter
New Member
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 ????
-
Aug 30th, 2001, 07:34 AM
#2
New Member
Your DLL could possibly be running under a user's context that has connected to Exchange, thus the reason why the DLL works.
At any rate MS has a known issue document about this here:
http://support.microsoft.com/support.../Q179/6/39.ASP
-
Sep 6th, 2002, 03:52 PM
#3
New Member
I do not see where you are setting your profile name. I see where you declare it but you never set it to anything. You must specify a profile.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|