ASP and CDONTS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kelsloris

    #1

    ASP and CDONTS

    I have an asp app that uses CDONTS to send email notifications. On the .send
    method I get an error saying the specified path could not be found.
    Everything I find about this error refers to IMS and the IMC folder. They say
    to install IMS and set the pickup folder to the IMCDATA folder.

    The problem is that this was working just fine until yesterday. We reset the
    server yesterday and now all of a sudden the app cannot send email. Any idea
    why this would happen? Is there some way to fix it besides trying to install
    IMS? I don't understand how it could work one day and not the next, when no
    configuration changes were made.

    Thanks for your help!
  • Jeff Dillon

    #2
    Re: ASP and CDONTS

    What is the exact error message? And post the code that you are using.

    Jeff
    "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
    news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...[color=blue]
    > I have an asp app that uses CDONTS to send email notifications. On the[/color]
    ..send[color=blue]
    > method I get an error saying the specified path could not be found.
    > Everything I find about this error refers to IMS and the IMC folder. They[/color]
    say[color=blue]
    > to install IMS and set the pickup folder to the IMCDATA folder.
    >
    > The problem is that this was working just fine until yesterday. We reset[/color]
    the[color=blue]
    > server yesterday and now all of a sudden the app cannot send email. Any[/color]
    idea[color=blue]
    > why this would happen? Is there some way to fix it besides trying to[/color]
    install[color=blue]
    > IMS? I don't understand how it could work one day and not the next, when[/color]
    no[color=blue]
    > configuration changes were made.
    >
    > Thanks for your help![/color]


    Comment

    • kelsloris

      #3
      Re: ASP and CDONTS

      The error is:
      error '80070003'
      The system cannot find the path specified.

      /intranet/hmsys/etest.asp, line 17

      The code is:

      Dim objCDO
      Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")

      ' This code assumes the above CDO
      'instantiation code is included
      objCDO.To = "[changed to protect the innocent]"
      objCDO.From = "[changed to protect the innocent]"

      Dim txtSubject
      txtSubject = "This is an automated notification email from HMSys v2.0.0." &
      vbCrLf & "Please do not reply to this address." & vbCrLf & vbCrLf

      objCDO.Subject = "HMSys Auto Notification"
      objCDO.Body = txtSubject

      objCDO.Importan ce = 2 'High importance!
      objCDO.Send 'Send off the email!

      'Cleanup
      Set objCDO = Nothing

      The email notifications have been working for about 3 weeks. As of last
      night (after the server reset) I get the above error everywhere an email is
      supposed to be sent, with the line number pointing to the objCDO.Send line.
      The only thing that changes in the above code in other parts of the app is
      the body of the message.

      "Jeff Dillon" wrote:
      [color=blue]
      > What is the exact error message? And post the code that you are using.
      >
      > Jeff
      > "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
      > news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...[color=green]
      > > I have an asp app that uses CDONTS to send email notifications. On the[/color]
      > ..send[color=green]
      > > method I get an error saying the specified path could not be found.
      > > Everything I find about this error refers to IMS and the IMC folder. They[/color]
      > say[color=green]
      > > to install IMS and set the pickup folder to the IMCDATA folder.
      > >
      > > The problem is that this was working just fine until yesterday. We reset[/color]
      > the[color=green]
      > > server yesterday and now all of a sudden the app cannot send email. Any[/color]
      > idea[color=green]
      > > why this would happen? Is there some way to fix it besides trying to[/color]
      > install[color=green]
      > > IMS? I don't understand how it could work one day and not the next, when[/color]
      > no[color=green]
      > > configuration changes were made.
      > >
      > > Thanks for your help![/color]
      >
      >
      >[/color]

      Comment

      • s_m_b

        #4
        Re: ASP and CDONTS

        =?Utf-8?B?a2Vsc2xvcml z?= <kelsloris@disc ussions.microso ft.com> wrote in
        news:EFA80ADA-9E7A-4441-9FA8-4E53BA66DF24@mi crosoft.com:

        two points here - what values have you given to the paths for CDONT?
        Since the server was reset (rebooted?), is it possible that these have
        been accidentally dropped?
        [color=blue]
        > The error is:
        > error '80070003'
        > The system cannot find the path specified.
        >
        > /intranet/hmsys/etest.asp, line 17
        >
        > The code is:
        >
        > Dim objCDO
        > Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
        >
        > ' This code assumes the above CDO
        > 'instantiation code is included
        > objCDO.To = "[changed to protect the innocent]"
        > objCDO.From = "[changed to protect the innocent]"
        >
        > Dim txtSubject
        > txtSubject = "This is an automated notification email from HMSys
        > v2.0.0." &
        > vbCrLf & "Please do not reply to this address." & vbCrLf & vbCrLf
        >
        > objCDO.Subject = "HMSys Auto Notification"
        > objCDO.Body = txtSubject
        >
        > objCDO.Importan ce = 2 'High importance!
        > objCDO.Send 'Send off the email!
        >
        > 'Cleanup
        > Set objCDO = Nothing
        >
        > The email notifications have been working for about 3 weeks. As of
        > last night (after the server reset) I get the above error everywhere
        > an email is supposed to be sent, with the line number pointing to the
        > objCDO.Send line. The only thing that changes in the above code in
        > other parts of the app is the body of the message.
        >
        > "Jeff Dillon" wrote:
        >[color=green]
        >> What is the exact error message? And post the code that you are
        >> using.
        >>
        >> Jeff
        >> "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
        >> news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...[color=darkred]
        >> > I have an asp app that uses CDONTS to send email notifications. On
        >> > the[/color]
        >> ..send[color=darkred]
        >> > method I get an error saying the specified path could not be found.
        >> > Everything I find about this error refers to IMS and the IMC
        >> > folder. They[/color]
        >> say[color=darkred]
        >> > to install IMS and set the pickup folder to the IMCDATA folder.
        >> >
        >> > The problem is that this was working just fine until yesterday. We
        >> > reset[/color]
        >> the[color=darkred]
        >> > server yesterday and now all of a sudden the app cannot send email.
        >> > Any[/color]
        >> idea[color=darkred]
        >> > why this would happen? Is there some way to fix it besides trying
        >> > to[/color]
        >> install[color=darkred]
        >> > IMS? I don't understand how it could work one day and not the next,
        >> > when[/color]
        >> no[color=darkred]
        >> > configuration changes were made.
        >> >
        >> > Thanks for your help![/color]
        >>
        >>
        >>[/color]
        >[/color]

        Comment

        • kelsloris

          #5
          Re: ASP and CDONTS

          I don't know what the values were set at. How would I find out? I didn't
          actually set up the CDONT. I assumed it had been set up when the server was
          set up (before my time with the company). I just tried the code to use it and
          it worked so I didn't mess with anything. I suppose it's possible it got lost
          from the reboot, but again I don't know how that could happen. Where can I go
          to view/update the path for CDONT? Is it a registry setting that can be
          changed?

          "s_m_b" wrote:
          [color=blue]
          > =?Utf-8?B?a2Vsc2xvcml z?= <kelsloris@disc ussions.microso ft.com> wrote in
          > news:EFA80ADA-9E7A-4441-9FA8-4E53BA66DF24@mi crosoft.com:
          >
          > two points here - what values have you given to the paths for CDONT?
          > Since the server was reset (rebooted?), is it possible that these have
          > been accidentally dropped?
          >[color=green]
          > > The error is:
          > > error '80070003'
          > > The system cannot find the path specified.
          > >
          > > /intranet/hmsys/etest.asp, line 17
          > >
          > > The code is:
          > >
          > > Dim objCDO
          > > Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
          > >
          > > ' This code assumes the above CDO
          > > 'instantiation code is included
          > > objCDO.To = "[changed to protect the innocent]"
          > > objCDO.From = "[changed to protect the innocent]"
          > >
          > > Dim txtSubject
          > > txtSubject = "This is an automated notification email from HMSys
          > > v2.0.0." &
          > > vbCrLf & "Please do not reply to this address." & vbCrLf & vbCrLf
          > >
          > > objCDO.Subject = "HMSys Auto Notification"
          > > objCDO.Body = txtSubject
          > >
          > > objCDO.Importan ce = 2 'High importance!
          > > objCDO.Send 'Send off the email!
          > >
          > > 'Cleanup
          > > Set objCDO = Nothing
          > >
          > > The email notifications have been working for about 3 weeks. As of
          > > last night (after the server reset) I get the above error everywhere
          > > an email is supposed to be sent, with the line number pointing to the
          > > objCDO.Send line. The only thing that changes in the above code in
          > > other parts of the app is the body of the message.
          > >
          > > "Jeff Dillon" wrote:
          > >[color=darkred]
          > >> What is the exact error message? And post the code that you are
          > >> using.
          > >>
          > >> Jeff
          > >> "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
          > >> news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...
          > >> > I have an asp app that uses CDONTS to send email notifications. On
          > >> > the
          > >> ..send
          > >> > method I get an error saying the specified path could not be found.
          > >> > Everything I find about this error refers to IMS and the IMC
          > >> > folder. They
          > >> say
          > >> > to install IMS and set the pickup folder to the IMCDATA folder.
          > >> >
          > >> > The problem is that this was working just fine until yesterday. We
          > >> > reset
          > >> the
          > >> > server yesterday and now all of a sudden the app cannot send email.
          > >> > Any
          > >> idea
          > >> > why this would happen? Is there some way to fix it besides trying
          > >> > to
          > >> install
          > >> > IMS? I don't understand how it could work one day and not the next,
          > >> > when
          > >> no
          > >> > configuration changes were made.
          > >> >
          > >> > Thanks for your help!
          > >>
          > >>
          > >>[/color]
          > >[/color]
          >
          >[/color]

          Comment

          • kelsloris

            #6
            Re: ASP and CDONTS

            Ok, I've tried the methods at the following:



            When I tried the second one (using adsutil), I get the following errors:

            When I just try to view the setting for SMTPsvc/1:
            Error trying to enum the object (ObjectGet Failed): SMTPsvc/1

            When I try to use the set command:
            The path requested could not be found.
            Error trying to get the object: SMTPsvc/1

            I also tried using CDO instead of CDONTS. That didn't work at all. I REALLY
            need this working soon. Help is MUCH appreciated.

            Thanks.

            "s_m_b" wrote:
            [color=blue]
            > =?Utf-8?B?a2Vsc2xvcml z?= <kelsloris@disc ussions.microso ft.com> wrote in
            > news:EFA80ADA-9E7A-4441-9FA8-4E53BA66DF24@mi crosoft.com:
            >
            > two points here - what values have you given to the paths for CDONT?
            > Since the server was reset (rebooted?), is it possible that these have
            > been accidentally dropped?
            >[color=green]
            > > The error is:
            > > error '80070003'
            > > The system cannot find the path specified.
            > >
            > > /intranet/hmsys/etest.asp, line 17
            > >
            > > The code is:
            > >
            > > Dim objCDO
            > > Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
            > >
            > > ' This code assumes the above CDO
            > > 'instantiation code is included
            > > objCDO.To = "[changed to protect the innocent]"
            > > objCDO.From = "[changed to protect the innocent]"
            > >
            > > Dim txtSubject
            > > txtSubject = "This is an automated notification email from HMSys
            > > v2.0.0." &
            > > vbCrLf & "Please do not reply to this address." & vbCrLf & vbCrLf
            > >
            > > objCDO.Subject = "HMSys Auto Notification"
            > > objCDO.Body = txtSubject
            > >
            > > objCDO.Importan ce = 2 'High importance!
            > > objCDO.Send 'Send off the email!
            > >
            > > 'Cleanup
            > > Set objCDO = Nothing
            > >
            > > The email notifications have been working for about 3 weeks. As of
            > > last night (after the server reset) I get the above error everywhere
            > > an email is supposed to be sent, with the line number pointing to the
            > > objCDO.Send line. The only thing that changes in the above code in
            > > other parts of the app is the body of the message.
            > >
            > > "Jeff Dillon" wrote:
            > >[color=darkred]
            > >> What is the exact error message? And post the code that you are
            > >> using.
            > >>
            > >> Jeff
            > >> "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
            > >> news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...
            > >> > I have an asp app that uses CDONTS to send email notifications. On
            > >> > the
            > >> ..send
            > >> > method I get an error saying the specified path could not be found.
            > >> > Everything I find about this error refers to IMS and the IMC
            > >> > folder. They
            > >> say
            > >> > to install IMS and set the pickup folder to the IMCDATA folder.
            > >> >
            > >> > The problem is that this was working just fine until yesterday. We
            > >> > reset
            > >> the
            > >> > server yesterday and now all of a sudden the app cannot send email.
            > >> > Any
            > >> idea
            > >> > why this would happen? Is there some way to fix it besides trying
            > >> > to
            > >> install
            > >> > IMS? I don't understand how it could work one day and not the next,
            > >> > when
            > >> no
            > >> > configuration changes were made.
            > >> >
            > >> > Thanks for your help!
            > >>
            > >>
            > >>[/color]
            > >[/color]
            >
            >[/color]

            Comment

            • Jeff Dillon

              #7
              Re: ASP and CDONTS

              Uninstall SMTP on your machine. I've heard that you'll get this error if you
              choose a non-default location during install. You could always use JMail,
              that's what we're using here, and it's free. There are several others.

              Jeff
              "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
              news:30F120A6-4E07-4CA4-BEA2-1C3AB91AB47E@mi crosoft.com...[color=blue]
              > Ok, I've tried the methods at the following:
              > http://www.kbalertz.com/kb_Q319890.aspx
              > http://www.kbalertz.com/Feedback.aspx?kbNumber=238956
              >
              > When I tried the second one (using adsutil), I get the following errors:
              >
              > When I just try to view the setting for SMTPsvc/1:
              > Error trying to enum the object (ObjectGet Failed): SMTPsvc/1
              >
              > When I try to use the set command:
              > The path requested could not be found.
              > Error trying to get the object: SMTPsvc/1
              >
              > I also tried using CDO instead of CDONTS. That didn't work at all. I[/color]
              REALLY[color=blue]
              > need this working soon. Help is MUCH appreciated.
              >
              > Thanks.
              >
              > "s_m_b" wrote:
              >[color=green]
              > > =?Utf-8?B?a2Vsc2xvcml z?= <kelsloris@disc ussions.microso ft.com> wrote in
              > > news:EFA80ADA-9E7A-4441-9FA8-4E53BA66DF24@mi crosoft.com:
              > >
              > > two points here - what values have you given to the paths for CDONT?
              > > Since the server was reset (rebooted?), is it possible that these have
              > > been accidentally dropped?
              > >[color=darkred]
              > > > The error is:
              > > > error '80070003'
              > > > The system cannot find the path specified.
              > > >
              > > > /intranet/hmsys/etest.asp, line 17
              > > >
              > > > The code is:
              > > >
              > > > Dim objCDO
              > > > Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
              > > >
              > > > ' This code assumes the above CDO
              > > > 'instantiation code is included
              > > > objCDO.To = "[changed to protect the innocent]"
              > > > objCDO.From = "[changed to protect the innocent]"
              > > >
              > > > Dim txtSubject
              > > > txtSubject = "This is an automated notification email from HMSys
              > > > v2.0.0." &
              > > > vbCrLf & "Please do not reply to this address." & vbCrLf & vbCrLf
              > > >
              > > > objCDO.Subject = "HMSys Auto Notification"
              > > > objCDO.Body = txtSubject
              > > >
              > > > objCDO.Importan ce = 2 'High importance!
              > > > objCDO.Send 'Send off the email!
              > > >
              > > > 'Cleanup
              > > > Set objCDO = Nothing
              > > >
              > > > The email notifications have been working for about 3 weeks. As of
              > > > last night (after the server reset) I get the above error everywhere
              > > > an email is supposed to be sent, with the line number pointing to the
              > > > objCDO.Send line. The only thing that changes in the above code in
              > > > other parts of the app is the body of the message.
              > > >
              > > > "Jeff Dillon" wrote:
              > > >
              > > >> What is the exact error message? And post the code that you are
              > > >> using.
              > > >>
              > > >> Jeff
              > > >> "kelsloris" <kelsloris@disc ussions.microso ft.com> wrote in message
              > > >> news:85E90F90-C7A2-4B5B-8523-B23F7F83B3F9@mi crosoft.com...
              > > >> > I have an asp app that uses CDONTS to send email notifications. On
              > > >> > the
              > > >> ..send
              > > >> > method I get an error saying the specified path could not be found.
              > > >> > Everything I find about this error refers to IMS and the IMC
              > > >> > folder. They
              > > >> say
              > > >> > to install IMS and set the pickup folder to the IMCDATA folder.
              > > >> >
              > > >> > The problem is that this was working just fine until yesterday. We
              > > >> > reset
              > > >> the
              > > >> > server yesterday and now all of a sudden the app cannot send email.
              > > >> > Any
              > > >> idea
              > > >> > why this would happen? Is there some way to fix it besides trying
              > > >> > to
              > > >> install
              > > >> > IMS? I don't understand how it could work one day and not the next,
              > > >> > when
              > > >> no
              > > >> > configuration changes were made.
              > > >> >
              > > >> > Thanks for your help!
              > > >>
              > > >>
              > > >>
              > > >[/color]
              > >
              > >[/color][/color]


              Comment

              Working...