Forums

This topic is locked

Order notification by Mail / Order Confirmation..

Posted 07 Jul 2002 01:40:44
1
has voted
07 Jul 2002 01:40:44 Gretarsson Ingi Orn posted:
I´m trying to send an order notification to the sites administrator when an order is confirmed and saved to the DB(Using CharonCart). Here is my code

<%

Dim objMail
if Request("CC_OrderInsert" <> "" then

' Create the message for the email
strMessage = "Here is a questinnaire from your website" & VbCrlf & VbCrlf
strMessage = strMessage & "Kúnni nr: " & rsKunni("CustomerID" & VbCrlf
strMessage = strMessage & "Email: " & rsKunni("CustomerEmail" & VbCrlf
strMessage = strMessage & "Pöntun nr: " & Session("OrderID" & VbCrlf


Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.To = " "

objMail.From = rsKunni(CustomerEmail)
objMail.Subject = "Web Site Questionnaire submission"
objMail.Body = strMessage

' Send the mail and tidy up
objMail.Send
Set objMail = Nothing

' Redirect to thankyou page
Response.Redirect "Takkfyrir.htm"

End If
%>

<B> And I´m getting this error message: </b>

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/Storirskor/innkaupakarfaut.asp, line 128


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
POST 91 bytes to /Storirskor/innkaupakarfaut.asp

POST Data:
Submit=Sta%F0festa+P%F6ntun&CC_OrderInsert=1&SubTotal=4400&IpAddress=127.0.0.1&CustomerID=2


I am wondering if I have to sett my IIS up or the SMPT or is my code wrong?? I have no Idea..

<b>Any help would be deeply appreciated! </b>

(UD4/ASP/VBS/IIS/XP)


Ingi Orn Gretarsson

Replies

Replied 07 Jul 2002 01:48:58
07 Jul 2002 01:48:58 Gretarsson Ingi Orn replied:
The second strMessage is line nr 128

Ingi Orn Gretarsson
Replied 07 Jul 2002 01:51:26
07 Jul 2002 01:51:26 Gretarsson Ingi Orn replied:
sorry ignore my last reply.. it´s the set <b> objMail = Server.CreateObject("CDONTS.NewMail" </b> that is line nr 128


Ingi Orn Gretarsson
Replied 10 Jul 2002 02:21:55
10 Jul 2002 02:21:55 Ricardo Ribeiro replied:
Sorry.. this is not help for you. In fact this is something I also like to do, so if you find the solution to your problem, please share it with us.

Replied 14 Jan 2003 01:24:29
14 Jan 2003 01:24:29 Lee Diggins replied:
If you want a possible answer keep reading the post below, it states the answer lies with the cdonts.dll missing from the system:

www.devasp.com/Forum/topic.asp?TOPIC_ID=100

Digga

Sharing Knowledge Saves Valuable Time!!!

Edited by - Digga the Wolf on 14 Jan 2003 01:26:04

Reply to this topic