473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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("CDONTS.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.gardenlightingltd.co.uk/sitem/"

myMail.From="Garden Lighting Website"
myMail.To="ja***@graphics-line.co.uk"
myMail.Subject="Graden Lighting Order Announcement"
myMail.BodyFormat=1
myMail.MailFormat=1
myMail.Body=myBody
myMail.Send
set mymail=nothing
%>
<%
' Garden Lighting Order Announcement
Dim myMail2
Dim myBody2
Dim mySender

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

Set myMail2 = CreateObject("CDONTS.NewMail")

myBody2="Delivery Information:" & VbCrLf &_
"Name: " & (Orders.Fields.Item("CusCountry").Value) & VbCrLf &_
"Company: " & (Orders.Fields.Item("DelCompany").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("DelPostCode").Value) & VbCrLf &_
"Country: " & (Orders.Fields.Item("DelCountry").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("CusCompany").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("CusPostCode").Value) & VbCrLf &_
"Country: " & (Orders.Fields.Item("CusCountry").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("FurtherInformation").Value) &
VbCrLf & VbCrLf &_
"Goods Ordered:"& VbCrLf
While ((Repeat2__numRows <> 0) AND (NOT rsOrderDetails.EOF))
myBody2 = myBody2 & "Item: " &
(rsOrderDetails.Fields.Item("ProductName").Value) & VbCrLf &_
"Finish: " & (rsOrderDetails.Fields.Item("FinishDesc").Value) & VbCrLf &_
"Option: " & (rsOrderDetails.Fields.Item("OptionDesc").Value) & VbCrLf &_
"Quantity: " & (rsOrderDetails.Fields.Item("OrderQuantity").Value ) & " @ " &
FormatCurrency((rsOrderDetails.Fields.Item("odPric e").Value), 2, -2, -2, -2)
& VbCrLf &_
"Price: " & FormatCurrency((rsOrderDetails.Fields.Item("odTota l").Value),
2, -2, -2, -2)
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-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("ITradeDisc").V alue), 2, -2, -2, -2) &
VbCrLf &_
"Delivery: " & FormatCurrency((Orders.Fields.Item("IDelivery").Va lue),
2, -2, -2, -2) & VbCrLf &_
"VAT: " & FormatCurrency((Orders.Fields.Item("IVAT").Value), 2, -2, -2, -2)
& VbCrLf &_
"Grand Total: " & FormatCurrency((Orders.Fields.Item("IGrandTotal"). Value),
2, -2, -2, -2)

myMail2.From="Vi*****@gardenlightingltd.co.uk"
myMail2.To="ja***@graphics-line.co.uk"
myMail2.Subject="Reciept for gardenlightingltd.co.uk order number:" &
UCII.OrderID
myMail2.BodyFormat=1
myMail2.MailFormat=1
myMail2.Body=myBody2
set mymail2=nothing
%>

Any help, ideas or pointers gratefully appreciated

Regards

James

tgl
Jul 19 '05 #1
1 4687
<james(at)graphics-line.co.uk> wrote in message
news:3f*********************@lovejoy.zen.co.uk...
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("CDONTS.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.gardenlightingltd.co.uk/sitem/"

myMail.From="Garden 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
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...
3
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...
2
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. ...
2
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
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...
29
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...
7
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...
4
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...
12
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.