Solved

CDONTS - The system cannot find the path specified.

Posted on 2002-06-26
17
751 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
document.getElementById not worj with 2 IDs with the same name 10 64
Html CheckBox obtain Its Value 5 43
send email part1 9 53
2012 SQL to JSON Select 5 45
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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