ASP and CDONTS

K

kelsloris

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!
 
J

Jeff Dillon

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

Jeff
 
K

kelsloris

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.CreateObject("CDONTS.NewMail")

' 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.Importance = 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.
 
S

s_m_b

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?
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.CreateObject("CDONTS.NewMail")

' 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.Importance = 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 said:
What is the exact error message? And post the code that you are
using.

Jeff
 
K

kelsloris

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 said:
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?
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.CreateObject("CDONTS.NewMail")

' 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.Importance = 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 said:
What is the exact error message? And post the code that you are
using.

Jeff
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!
 
K

kelsloris

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 REALLY
need this working soon. Help is MUCH appreciated.

Thanks.

s_m_b said:
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?
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.CreateObject("CDONTS.NewMail")

' 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.Importance = 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 said:
What is the exact error message? And post the code that you are
using.

Jeff
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!
 
J

Jeff Dillon

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 said:
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 REALLY
need this working soon. Help is MUCH appreciated.

Thanks.

s_m_b said:
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?
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.CreateObject("CDONTS.NewMail")

' 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.Importance = 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.

:

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

Jeff
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CDONTS 2
CDONTS issue - Not Working after server migration 1
ASP sending form via email - CDONTS / SMTP problem 3
CDONTS 4
CDONTS 5
CDONTS and Japanese Characters 1
cdosys cdonts question 4
CDONTS problem 2

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top