Access Is Denied error when using CDO.Message.Send

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Carrugar
    New Member
    • Jul 2007
    • 20

    Access Is Denied error when using CDO.Message.Send

    I'm running IIS 6.0 on a Win2003 server. One web page is trying to use the new CDO method of sending e-mail but generates the following error:

    CDO.Message.1 error '80070005'

    Access is denied.


    Code:

    <%
    Dim objMail
    set objMail = Server.CreateOb ject("CDO.Messa ge")
    objMail.From = "......"
    objMail.Subject = "CDOSYS Mail Message"
    objMail.To = "......"
    objMail.TextBod y = "Hello World"
    objMail.Send
    set objMail = nothing
    %>

    The error occurs when the objMail.Send line is invoked.

    The mail does not get copied to the /Inetpub/mailroot/Pickup directory but as far as I can see, all permissions are set ok.

    Is there a process prior to copying the email to the "Pickup" directory which may be causing the issue?

    Many thanks in advance for any help.
  • venkatesh01
    New Member
    • Nov 2007
    • 11

    #2
    check out the configuration details....plea se tel the configuration deatils like port value,so that we can pin point the error easily.

    thanks
    venki

    Comment

    • Carrugar
      New Member
      • Jul 2007
      • 20

      #3
      How do you check the port value? Can this be shown from the CDO.Configurati on object?

      Comment

      • Carrugar
        New Member
        • Jul 2007
        • 20

        #4
        Also noticed that this message occurs only in IIS 6.0 Worker Process Mode.

        If I change to IIS 5.0 Isolation Mode (Low), the email is sent ok!

        If I set the Isolation Mode to Medium or High, the following message is given:

        'The "SendUsing" configuration value is invalid.'

        Low Isolation mode means that IIS runs in the inetinfo process. I think that Medium and High Modes use dllhost to run the app. In IIS 6.0 w3wp is used. How do these different processes affect how emails are being sent and the restrictions given?!

        Comment

        • Carrugar
          New Member
          • Jul 2007
          • 20

          #5
          Default Port of 25 is being used.

          Comment

          • jhardman
            Recognized Expert Specialist
            • Jan 2007
            • 3405

            #6
            Originally posted by Carrugar
            Default Port of 25 is being used.
            An IIS expert recommends "changing from default application pool". I'm not sure I know what that means.

            Jared

            Comment

            • tdphan
              New Member
              • Dec 2007
              • 1

              #7
              Setting IIS for the website.Choose name of virtual directory.Right-Click and choose property. in Vitual Directory tab, at application pool select "Exchange Application Pool".
              tdphan

              Comment

              Working...