473,881 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS works intermitantly

Hi Guys

CDONTS works with all sites hosted on my test server bar one (which surely
rules out a miscomputation of the Default SMTP server in IIS). I have tried
uploading the file with make up the site in which CDONTS to one of the IIS
"sites" which is known to work with CDONTS, and still, no email received.
The bad mail dir gets three files each time, the error is:

Unable to deliver this message because the follow error was encountered:
"Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.

The solutions offered in various responses I found after a quick search all
assumed that the SMTP service was configured wrong, but how can mine be when
other sites can use the CDONTS/SMTP components fine.

The last thing it could be I guess is the code, which I assumed was fine as
I copied it from one of the working sites and edited the body section, but
here is just in case:

<%
' Garden Lighting Order Announcement
Dim myMail
Dim myBody

Set myMail = CreateObject("C DONTS.NewMail")

myBody="A new order has been placed using the www.gradenlightingltd.co.uk
website. For more information please visit the Site Maintenance area at
http://www.gardenlight ingltd.co.uk/sitem/"

myMail.From="Ga rden Lighting Website"
myMail.To="ja** *@graphics-line.co.uk"
myMail.Subject= "Graden Lighting Order Announcement"
myMail.BodyForm at=1
myMail.MailForm at=1
myMail.Body=myB ody
myMail.Send
set mymail=nothing
%>
<%
' Garden Lighting Order Announcement
Dim myMail2
Dim myBody2
Dim mySender

mySender = (Orders.Fields. Item("CusEmail" ).Value)

Set myMail2 = CreateObject("C DONTS.NewMail")

myBody2="Delive ry Information:" & VbCrLf &_
"Name: " & (Orders.Fields. Item("CusCountr y").Value) & VbCrLf &_
"Company: " & (Orders.Fields. Item("DelCompan y").Value) & VbCrLf &_
"Position: " & (Orders.Fields. Item("DelJob"). Value) & VbCrLf &_
"Address: " & (Orders.Fields. Item("DelAddr1" ).Value) & VbCrLf &_
"" & (Orders.Fields. Item("DelAddr2" ).Value) & VbCrLf &_
"" & (Orders.Fields. Item("DelAddr3" ).Value) & VbCrLf &_
"County: " & (Orders.Fields. Item("DelCounty ").Value) & VbCrLf &_
"Postcode: " & (Orders.Fields. Item("DelPostCo de").Value) & VbCrLf &_
"Country: " & (Orders.Fields. Item("DelCountr y").Value) & VbCrLf &_
"Telephone: " & (Orders.Fields. Item("DelTel"). Value) & VbCrLf &_
"Facsimile: " & (Orders.Fields. Item("DelFax"). Value) & VbCrLf &_
"Mobile: " & (Orders.Fields. Item("DelMob"). Value) & VbCrLf &_
"E-mail: " & VbCrLf & VbCrLf &_
"Billing Information:" & VbCrLf &_
"Name: " & (Orders.Fields. Item("CusName") .Value) & VbCrLf &_
"Company: " & (Orders.Fields. Item("CusCompan y").Value) & VbCrLf &_
"Position: " & (Orders.Fields. Item("CusJob"). Value) & VbCrLf &_
"Address: " & (Orders.Fields. Item("CusAddr1" ).Value) & VbCrLf &_
"" & (Orders.Fields. Item("CusAddr2" ).Value) & VbCrLf &_
"" & (Orders.Fields. Item("CusAddr3" ).Value) & VbCrLf &_
"County: " & (Orders.Fields. Item("CusCounty ").Value) & VbCrLf &_
"Postcode: " & (Orders.Fields. Item("CusPostCo de").Value) & VbCrLf &_
"Country: " & (Orders.Fields. Item("CusCountr y").Value) & VbCrLf &_
"Telephone: " & (Orders.Fields. Item("CusTel"). Value) & VbCrLf &_
"Facsimile: " & (Orders.Fields. Item("CusFax"). Value) & VbCrLf &_
"Mobile: " & (Orders.Fields. Item("CusMob"). Value) & VbCrLf &_
"E-mail: " & mySender & VbCrLf &_
"Further Information:" & (Orders.Fields. Item("FurtherIn formation").Val ue) &
VbCrLf & VbCrLf &_
"Goods Ordered:"& VbCrLf
While ((Repeat2__numR ows <> 0) AND (NOT rsOrderDetails. EOF))
myBody2 = myBody2 & "Item: " &
(rsOrderDetails .Fields.Item("P roductName").Va lue) & VbCrLf &_
"Finish: " & (rsOrderDetails .Fields.Item("F inishDesc").Val ue) & VbCrLf &_
"Option: " & (rsOrderDetails .Fields.Item("O ptionDesc").Val ue) & VbCrLf &_
"Quantity: " & (rsOrderDetails .Fields.Item("O rderQuantity"). Value) & " @ " &
FormatCurrency( (rsOrderDetails .Fields.Item("o dPrice").Value) , 2, -2, -2, -2)
& VbCrLf &_
"Price: " & FormatCurrency( (rsOrderDetails .Fields.Item("o dTotal").Value) ,
2, -2, -2, -2)
Repeat2__index= Repeat2__index+ 1
Repeat2__numRow s=Repeat2__numR ows-1
rsOrderDetails. MoveNext()
Wend
myBody2 = myBody2 & VbCrLf & "Total: " &
FormatCurrency( (Orders.Fields. Item("ITotal"). Value), 2, -2, -2, -2) & VbCrLf
&_
"Trade Discount: " &
FormatCurrency( (Orders.Fields. Item("ITradeDis c").Value), 2, -2, -2, -2) &
VbCrLf &_
"Delivery: " & FormatCurrency( (Orders.Fields. Item("IDelivery ").Value),
2, -2, -2, -2) & VbCrLf &_
"VAT: " & FormatCurrency( (Orders.Fields. Item("IVAT").Va lue), 2, -2, -2, -2)
& VbCrLf &_
"Grand Total: " & FormatCurrency( (Orders.Fields. Item("IGrandTot al").Value),
2, -2, -2, -2)

myMail2.From="V i*****@gardenli ghtingltd.co.uk "
myMail2.To="ja* **@graphics-line.co.uk"
myMail2.Subject ="Reciept for gardenlightingl td.co.uk order number:" &
UCII.OrderID
myMail2.BodyFor mat=1
myMail2.MailFor mat=1
myMail2.Body=my Body2
set mymail2=nothing
%>

Any help, ideas or pointers gratefully appreciated

Regards

James

tgl
Jul 19 '05 #1
1 4710
<james(at)graph ics-line.co.uk> wrote in message
news:3f******** *************@l ovejoy.zen.co.u k...
CDONTS works with all sites hosted on my test server bar one (which surely
rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up the site in which CDONTS to one of the IIS
"sites" which is known to work with CDONTS, and still, no email received.
The bad mail dir gets three files each time, the error is:

Unable to deliver this message because the follow error was encountered:
"Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.

The solutions offered in various responses I found after a quick search all assumed that the SMTP service was configured wrong, but how can mine be when other sites can use the CDONTS/SMTP components fine.

The last thing it could be I guess is the code, which I assumed was fine as I copied it from one of the working sites and edited the body section, but
here is just in case:

<%
' Garden Lighting Order Announcement
Dim myMail
Dim myBody

Set myMail = CreateObject("C DONTS.NewMail")

myBody="A new order has been placed using the www.gradenlightingltd.co.uk
website. For more information please visit the Site Maintenance area at
http://www.gardenlight ingltd.co.uk/sitem/"

myMail.From="Ga rden Lighting Website"


Don't you need to provide a properly formatted email address here?
FWIW, CDONTS is working fine - it just places a properly formatted text file
into the SMTP pickup folder.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4105
by: Guillaume Hanique | last post by:
Hello! Could anybody help me. I wrote a program that interprets information in a database, and can send information via email. The program works fine on my developer machine, but when I run it on an other computer, I get the error "Could not create 'CDONTS.NewMail' object..." a lot of times and then an error: "Failed to load resources from resource file. Please check your Setup.".
3
1899
by: amith shetty | last post by:
I am using CDONTS to send mail to the user from my ASP application. However, the code doenst works all the time. I am able to get mails but nothing happnes most of the time. The code works maybe once in 20 tries. What could be the reason? Thanks in advance. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
2
2058
by: Tom Petersen | last post by:
Is there anyway to display the comma using CDONTS.NewMail on the from 'object' For example, when I send the email, I want it to say from: Petersen, Tom, but when I rec. it only shows Petersen. Set Mail=Server.CreateObject("CDONTS.NewMail") Mail.From="Petersen, Tom" < doesn't work Mail.From=Request.Form("requestor") < doesn't work, but Response.Write shows it correctly
2
2587
by: Andy | last post by:
Hi Gang I can create an email with ASP's using CDONTS and this works well. I'd like to format the email as HTML. Can I do this with ASP's and CDONTS? Regards, Andy
5
4337
by: Krishnan | last post by:
Hello I am trying have a feed back page and created an ASP page to send an email. But I get the following error: Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string The line in the page is as follows:
29
3557
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to make objCDONTS.Send work?
7
2553
by: Mario Leduc | last post by:
Hi, I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine. Why with the numeric URL, CDONTS does not send the mail?? Thanks
4
1447
by: RICHARD BROMBERG | last post by:
I am using CDONTS in an ASP program to accept input from a Form and send an E-mail. The form includes the following as well as some other information : From (the name of the sender) To ( the name of the recipient) From E-Mail ( the senders E-Mail Address i.e. the Reply to address) To E-Mail ( The recipient's E-Mail Address ) I am having trouble with two properties. What property do I use...
12
6311
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object: 'CDONTS.NewMail' I'm told that is because CDONTS is not installed.
0
9931
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10724
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10403
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9556
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7953
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5978
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.