Results 1 to 3 of 3

Thread: Help Me!! I have problems with CDO!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    2

    Unhappy 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 ????

  2. #2
    New Member
    Join Date
    Aug 2001
    Location
    Louisville KY
    Posts
    8
    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
    Great hosting available at FatHosting.com

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    Tyler, Texas
    Posts
    15
    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
  •  



Click Here to Expand Forum to Full Width