Solved

CDONTS - The system cannot find the path specified.

Posted on 2002-06-26
17
683 Views
Last Modified: 2012-08-14
Hi

When using the CDONTS at the point of issuing the .send command I get this message, I am using Win NT4 which had exchange server already installed on it, so that when I installed IIS4 it didnt install the SMPT part.  Originally I had a message saying it couldnt create the Active X component, but after using Regsvr to register CDONTS i get this message.

IF FOUND THIS IN A NEW GROUP
****
Your code tries to use CDONTS which is only installed if you install the
IIS4 SMTP Service. To install the IIS4 SMTP Service, delete the Exchange 5.5
IMS, install this SMTP service and after this is done just re-create the
Exchange 5.5 IMS.

And don't forget to reapply the latest NT and Exchange Service Pack to get
the latest CDONTS library
****

but this sounds a little extreme is there any other way, I dont want to have to re-build all my email accounts for everyone in the office, would take forever :(.

I used my Outlook 2000 to install the CDO components.  I have looked on MSDN and it going on about using ADSUTIL enum SMTPsvc/1 to change the pick directory, altho my cscript command reccons it can do anything with .vbs files arrrrhhhhh, any help very much appriciated

Regards
Craig
0
Comment
Question by:publicityhouse
  • 8
  • 4
  • 2
  • +2
17 Comments
 
LVL 2

Expert Comment

by:chops123
ID: 7110066
I guess ur server is in some kind of mess.

By default,all SMTP Servers use port 25 as default.Therefore if there is another program running on the same machine on port 25,the other program will fail to run or in some cases cause some conflict.

When you install MS SMTP Server from the option pack,you CDONTS.dll is registered automatically.

Have your tried changing the default port of exchange server to other than 25.

Rgds
KC

0
 
LVL 20

Expert Comment

by:Silvers5
ID: 7110076
you are trying to attach a file in the message that the IUSR_webservername have no permission to read it.. since it can't find the path.. can you post some code

also I would recommend you use free www.aspemail.com component it's faster and better.. and they have good docs on how to use
0
 

Author Comment

by:publicityhouse
ID: 7110121
There's no attachment and the message body is plain text (posted below) and the code is fine as is works on my ISP server, its when I put it on my NT sever in the office the problems occur. The only reference to an external file is the image location, ive tried removing this and the error still occured.

When you install IIS4 from the option pack SMTP is not installed and registered automatically if you are running exchange server already as you get a prompt saying that you have this setup and that it cant install the SMTP service.

Any more ideas regards
Craig

JUST INCASE IT HELPS :)

Dim myMail
      Dim HTML
      
      HTML = "<HTML>"
      HTML = HTML & "<HEAD>"
      HTML = HTML & "</HEAD>"
      HTML = HTML & "<BODY bgcolor='#8ce0ff'>"

      HTML = HTML & "<div align=center>"
      HTML = HTML & "<center>"
      HTML = HTML & "<table border=0 cellspacing=1 width=90%>"
    HTML = HTML & "<tr>"
      HTML = HTML & "<td width=100% valign=top>"
    HTML = HTML & "<div align=center>"
    HTML = HTML & "<table border=1 cellspacing=0 width=100% bordercolor=#0000FF cellpadding=0>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% colspan=2 valign=top bgcolor=#0000FF>"
    HTML = HTML & "<font size=5 face=Arial color=#FFFFFF><I>" & rstProduct.fields.getValue("BriefDesc")
    HTML = HTML & "- " & rstProduct.fields.getValue("ProductID") & "</I></font>"
    HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=43% valign=top>"
    HTML = HTML & "<div align=center>"
    HTML = HTML & "<table border=0 cellspacing=1>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=304><img border=1 src=" & """" & "http://www.gcgpromotions.co.uk/prodimg/" &  rstProduct.fields.getValue("Image") & """" & " width=300 height=300></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "</table>"
    HTML = HTML & "</div>"
    HTML = HTML & "</td>"
    HTML = HTML & "<td width=57% valign=top>"
    HTML = HTML & "<div align=center>"
    HTML = HTML & "<table border=0 cellspacing=0 width=100% cellpadding=0>"
      HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top bgcolor=#0000FF colspan=4><font face=Arial color=#FFFFFF><b>Description</b></font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4><font face=Arial>" & rstProduct.fields.getValue("ProductDescription") & "</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4 bgcolor=#0000FF><font face=Arial color=#FFFFFF><b>Size</b></font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4><font face=Arial>" & rstProduct.fields.getValue("Size") & "</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4 bgcolor=#0000FF><font face=Arial color=#FFFFFF><b>Print"
    HTML = HTML & " Area</b></font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4><font face=Arial>" & rstProduct.fields.getValue("Print Area") & "</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top colspan=4 bgcolor=#0000FF><font face=Arial color=#FFFFFF><b>Pricing "
    HTML = HTML & "Information</b></font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=25% valign=top><font face=Arial>Qty</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Break1") & "</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Break2") & "</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Break3") & "</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=25% valign=top><font face=Arial>Price (#)</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Sell1") & "</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Sell2") & "</font></td>"
    HTML = HTML & "<td width=25% valign=top align=center><font face=Arial>" & rstProduct.fields.getValue("Sell3") & "</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "</table>"
    HTML = HTML & "</div>"
    HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=43% valign=top>"
    HTML = HTML & "<div align=center>"
    HTML = HTML & "<table border=0 cellspacing=1 width=100%>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% align=center>"
      HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% align=center>"
      HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% align=center>"
      HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "</table>"
    HTML = HTML & "</div>"
    HTML = HTML & "</td>"
    HTML = HTML & "<td width=57% valign=top>"
    HTML = HTML & "<div align=center>"
    HTML = HTML & "<table border=0 valign=top cellspacing=0 width=100% bordercolor=#0000FF cellpadding=0>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top bgcolor=#0000FF valign=top><font face=Arial color=#FFFFFF><b>Additional"
    HTML = HTML & " Information</b></font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "<tr>"
    HTML = HTML & "<td width=100% valign=top><font face=Arial>..</font></td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "</table>"
    HTML = HTML & "</div>"
    HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
    HTML = HTML & "</table>"
    HTML = HTML & "</div>"
    HTML = HTML & "</td>"
    HTML = HTML & "</tr>"
      HTML = HTML & "</table>"
      HTML = HTML & "</center>"
      HTML = HTML & "</div>"
      HTML = HTML & "</body>"
      HTML = HTML & "</head>"

      Set myMail = CreateObject("CDONTS.NewMail")
      myMail.bodyFormat = 0
      myMail.mailFormat = 0
      myMail.From = tbxSendFrom.value
      myMail.To = tbxSendTo.value
      myMail.Subject = "Item Reference: " & rstProduct.fields.getValue("ProductID") & " from " & tbxSendFrom.value
      myMail.Body = HTML
      myMail.Send
            
      Set myMail = Nothing
      Response.Redirect "viewProduct.asp?p1=" & Request.querystring("p1")
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 7110760
Set myMail = Server.CreateObject("CDONTS.NewMail")
0
 

Author Comment

by:publicityhouse
ID: 7110786
Tried that, no cigar, still got

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

/send.asp, line 192

fink I may have to kill my IMS, reinstall IIS and re-create IMS, i hate NT sometimes :(
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 7110836
Can't you manually install and register the .dll?
0
 

Author Comment

by:publicityhouse
ID: 7110970
I installed the CDO from outlook, and registered the CDONTS.dll manually which solved the previous error of ActiveX cant create component, but started this one off :(.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 7111009
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 18

Expert Comment

by:mgfranz
ID: 7111024
My guess is that the Mailroot folders do not exist in the InetPub tree, when SMTP is installed on IIS it creates these folders under MailRoot;

- BadMail
- Drop
- Mailbox
- Pickup
- Queue
- Route
- SortTemp

0
 

Author Comment

by:publicityhouse
ID: 7112958
OK, I have removed my IMS, re-installed the SMTP part IIS and re-creared the IMS, all appeard to work fine now, excpect that mails created from the asp script dont appear to get sent from my sever, they are all sitting in my 'pickup' folder in my mailroot folder as eml files, is this standard or do they sit here waiting for something to happen that makes them get sent?????

Regards
Craig
0
 

Author Comment

by:publicityhouse
ID: 7112963
OK, I have removed my IMS, re-installed the SMTP part IIS and re-creared the IMS, all appeard to work fine now, excpect that mails created from the asp script dont appear to get sent from my sever, they are all sitting in my 'pickup' folder in my mailroot folder as eml files, is this standard or do they sit here waiting for something to happen that makes them get sent?????

Regards
Craig
0
 

Author Comment

by:publicityhouse
ID: 7112995
BTW the Microsoft SMTP service is showing as disabled in my services list, is this normal when IIS is installed on a machine which has ES 5.5 installed on it?
0
 
LVL 2

Expert Comment

by:chops123
ID: 7113006
The SMTP server is possibly disabled due to the exchange server running. The port 25 is being used by exchange server.

Open IIS console. CLick on properties for SMTP server and change the SMTP port to say 26.Once that is done, start the SMTP Service.

The other option is to halt the Exchange Server for sometime and then run SMTP Service on port 25.

In case the you send the mail,cheque the queue folder.You mail should be queued for mail there.

KC
0
 

Author Comment

by:publicityhouse
ID: 7113029
is there no way to make the system use exhange to send mail????,  Though like would be easy lol, is a nitemare :)

Craig
0
 

Accepted Solution

by:
publicityhouse earned 0 total points
ID: 7113675
all sorted if you remove the SMTP from IIS, re-install it, and set the mailroot to the imcdata in the exchange folder, it uses this pickup to collect mail and all is well.

Thanks for all the suggestions

Craig
0
 
LVL 4

Expert Comment

by:Wakie
ID: 9355512
It appears this question has been abandoned.

I will leave a recommendation in the Cleanup topic area that this question will be:

- Question PAQ'd & Points refunded -

Please leave any comments here within the next seven days.

DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Wakie,
EE Cleanup Volunteer.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now