<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : sendemail.asp error</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : sendemail.asp error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 14:43:53 +0000</pubDate>
  <lastBuildDate>Tue, 18 Jul 2006 08:34:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=582</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[sendemail.asp error : The version of CSimpleADO that...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2067&amp;title=sendemailasp-error#2067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/18/06 at 8:34am<br /><br />The version of CSimpleADO that ships with the product is the correct one although that file has undergone very little changes so its doubtful the version is the problem.  If the file is in the cgi-bin folder, than the problem is that it cannot find the file.<br /><br />You should not be changing connection string information.  The name of the SalesCart Connection string session variable is "ConnectionString".  You don't change this stuff...there never is a reason to even open it up.<br /><br />Your error message is quite discript.<br />Class not defined: 'CSimpleAdo' <br /><br />In other words, I cannot find CSimpleAdo?  Where is it?  I expect to see it in the same path as where I am as normally defined by an include at the top of the page, but I cannot find it there.<br /><br />Sendemail.asp normally gets called from receipt2.asp.  Does the top of your receipt page have this?:<br /><br />&lt;!--#include file="codepage.asp"--&gt;]]>
   </description>
   <pubDate>Tue, 18 Jul 2006 08:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2067&amp;title=sendemailasp-error#2067</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error : What pathing/relative pathing...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2064&amp;title=sendemailasp-error#2064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=273">jason2004</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/18/06 at 2:07am<br /><br />What pathing/relative pathing issues you think I might have?<br /><br />Looking at the code shouldn't the Session ("ConnectionString") be ("SalesCart1_connectionstring") or to leave as it is?<br /><br /><br />Set SimpleAdo = New CSimpleAdo <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimpleAdo.setConnectionString = Session("ConnectionString") <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RS = SimpleAdo.getRecordSet(SQLStmt) <br />]]>
   </description>
   <pubDate>Tue, 18 Jul 2006 02:07:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2064&amp;title=sendemailasp-error#2064</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error :   mike wrote:Sorry not Cmail....]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2063&amp;title=sendemailasp-error#2063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=273">jason2004</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/18/06 at 2:02am<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mike" alt="Originally posted by mike" style="vertical-align: text-bottom;" /> <strong>mike wrote:</strong><br /><br />Sorry not Cmail.  Csimpleado.asp is the class that holds csimpleado.&nbsp;&nbsp;&nbsp;Either its not in the cgi-bin or it can't find it because of pathing/relative pathing issues you have introduced somehow.</td></tr></table><br /><br />I do have CSimpleado.asp in CGI-BIN folder.<br /><strong>I have 2 versions of this file:</strong> <br /><br /><br /><strong>One that came with SalesCart Pro 5:</strong><br />--------------------------------<br />&lt;%<br /> '----------------------------------------------------------- ---------<br />' CSimple ADO<br />'<br />' Copyright (c) 1995-2003 ComCity Corporation.  All Rights Reserved.<br />'<br />'<br />'<br />' Define all Function Calls, Subroutines, and classes in this file<br />'<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CREATED Unknown by ip<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MODIFICATIONS<br /> '----------------------------------------------------------- ---------<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unknown&nbsp;&nbsp;&nbsp;&nbs p; ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Created<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/16/01&nbsp;&nbsp;&nbsp;&nbs p; mtb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; & nbsp; Incorporation changes for Pro 3.0<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/16/01&nbsp;&nbsp;&nbsp;&nbs p; mtb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; & nbsp; Needs Release 2.0<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5/13/03&nbsp;&nbsp;&nbsp;&nbs p; wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Created new function checkSQL to modify SQL statements to conform with SQL Server<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5/13/03&nbsp;&nbsp;&nbsp;&nbs p; wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Updated getRecordSet and ExecuteInsertUpdate functions to use checkSQL function<br />'<br />'<br />'<br /> '----------------------------------------------------------- ---------<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXAMPLE<br /> '----------------------------------------------------------- ---------<br />'Dim objSimpleAdo, rstRS, strSql<br />'<br />'strSql = "SELECT * FROM MyTable"<br />'Set SimpleAdo = New CSimpleAdo<br />'SimpleAdo.setConnectionString = Session("Connection")<br />'Set rstRS = SimpleAdo.getRecordSet(strSql)<br />'Do stuff with the record set<br />'Set SimpleAdo = Nothing<br />'Set RS = Nothing<br />'<br /> '----------------------------------------------------------- ---------<br />'**Start  Encode**#@~^pgsAAA==@#@&@#@&@#@&;Vlk/,/?b:2Vb&#091;G@#@&dh.k7lY ~/W&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmOkGUUY.k  &nbs p;  L@#@&dK.b\lOn,ZGx&nbsp;&nbsp;&nbsp;&nbsp;  ;<br />-------------------------------------------------<br /><br /><br /><strong>and one I have downloaded:</strong><br /><br />&lt;%<br /> '----------------------------------------------------------- ---------<br />' CSimple ADO<br />'<br />' Copyright (c) 1995-2003 ComCity Corporation.  All Rights Reserved.<br />'<br />'<br />'<br />' Define all Function Calls, Subroutines, and classes in this file<br />'<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CREATED Unknown by ip<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MODIFICATIONS<br /> '----------------------------------------------------------- ---------<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unknown&nbsp;&nbsp;&nbsp;&nbs p; ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Created<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/16/01&nbsp;&nbsp;&nbsp;&nbs p; mtb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; & nbsp; Incorporation changes for Pro 3.0<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/16/01&nbsp;&nbsp;&nbsp;&nbs p; mtb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; & nbsp; Needs Release 2.0<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5/13/03&nbsp;&nbsp;&nbsp;&nbs p; wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Created new function checkSQL to modify SQL statements to conform with SQL Server<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5/13/03&nbsp;&nbsp;&nbsp;&nbs p; wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp; Updated getRecordSet and ExecuteInsertUpdate functions to use checkSQL function<br />'<br />'<br />'<br /> '----------------------------------------------------------- ---------<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXAMPLE<br /> '----------------------------------------------------------- ---------<br />'Dim objSimpleAdo, rstRS, strSql<br />'<br />'strSql = "SELECT * FROM MyTable"<br />'Set SimpleAdo = New CSimpleAdo<br />'SimpleAdo.setConnectionString = Session("Connection")<br />'Set rstRS = SimpleAdo.getRecordSet(strSql)<br />'Do stuff with the record set<br />'Set SimpleAdo = Nothing<br />'Set RS = Nothing<br />'<br /> '----------------------------------------------------------- ---------<br />'**Start Encode**<br /><br /><br />Class CSimpleAdo<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private ConnectionString<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private Conn<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private RS<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public Property Let setConnectionString(strConn)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  ConnectionString = strConn<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Property<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private Function getDataConnection()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  On Error Resume Next<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Conn.O pen&nbsp;&nbsp;&nbsp;ConnectionString <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If Err.number &lt;&gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nb sp;&nbsp;&nbsp;newConn, posUID<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newCon n&nbsp;&nbsp;&nbsp;= ConnectionString<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;posUID &nbsp;&nbsp;&nbsp;= Instr(1,newConn,"uid",1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If posUID &lt;&gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    newConn  = Mid(newConn,1,posUID-1)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Respon se.Write&nbsp;&nbsp;&nbsp;"Could  not open data connection. Error:&lt;BR&gt;" & Err.Description<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Respon se.Write&nbsp;&nbsp;&nbsp;"&lt;p&gt;The  Invalid ConnectionString is defined as:  " & newConn<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Respon se.End<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;  End If<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set getDataConnection = Conn<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Function<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public Function getRecordSet(sql)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  sql = checkSQL(sql)<br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Dim conn<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set conn = getDataConnection()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  RS.CursorType = 3<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  RS.CursorLocation  = 3<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  On Error Resume Next<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RS.Open&nbsp;&nbsp;&nbsp;sql,conn<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If Err.number &lt;&gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write&nbsp;&nbsp;&nbsp;"Error: &lt;BR&gt;" & Err.Description<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit&nbsp;&nbsp;&nbsp;Function<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  End If<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set getRecordSet = RS<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Function<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public Function ExecuteInsertUpdate(sql)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  sql = checkSQL(sql)<br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Dim Conn<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set Conn = getDataConnection()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  On Error Resume Next<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Conn.Execute(sql)<br />   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If Err.number &lt;&gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ExecuteInsertUpdat e  = False<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  End If<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  ExecuteInsertUpdate   = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Function<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public Function checkSQL(SQLStr)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If Session("DBType") = 1 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStr&nbsp;&nbsp;&nbsp;= Replace(SQLStr, "DISTINCTROW ", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStr&nbsp;&nbsp;&nbsp;= Replace(SQLStr, "Order.", "&#091;order&#093;.")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQLStr&nbsp;&nbsp;&nbsp;= Replace(SQLStr, "order.", "&#091;order&#093;.")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If InStr(SQLStr, "DELETE item.Control") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "item.Control ", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If InStr(SQLStr, "DELETE *") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "* ", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If InStr(SQLStr, "AllOrders") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "&#091;order&#093;.", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "#", "'")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "customer.", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "&#091;AllOrders&#093;", "AllOrders")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If InStr(SQLStr, "ConfirmedOrder") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "&#091;order&#093;.", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "#", "'")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "customer.", "")<br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    If InStr(SQLStr, "orderdate like") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  SQLStr  = Replace(SQLStr, "like", "=")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    End  If<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  If InStr(SQLStr, "CustomerOrder") Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "&#091;order&#093;.", "")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;    SQLStr  = Replace(SQLStr, "#", "'")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nb sp;&nbsp;&nbsp;If<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  End If<br /><br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  checkSQL = SQLStr<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Function<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private Sub Class_Initialize()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set RS = Server.CreateObject("ADODB.RecordSet")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set Conn = Server.CreateObject("ADODB.Connection")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Sub<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private Sub Class_Terminate()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set Conn = Nothing<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  Set RS = Nothing<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  'Conn.Close<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Sub<br />End Class<br /><br />%&gt;<br />--------------------------------------<br /><strong>Which one is the correct?</strong><br /><br /><span style="font-size:10px"><br /><br />Edited by jason2004</span>]]>
   </description>
   <pubDate>Tue, 18 Jul 2006 02:02:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2063&amp;title=sendemailasp-error#2063</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error : Sorry not Cmail.  Csimpleado.asp...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2059&amp;title=sendemailasp-error#2059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/17/06 at 4:46pm<br /><br />Sorry not Cmail.  Csimpleado.asp is the class that holds csimpleado.&nbsp;&nbsp;&nbsp;Either its not in the cgi-bin or it can't find it because of pathing/relative pathing issues you have introduced somehow.]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 16:46:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2059&amp;title=sendemailasp-error#2059</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error :   mike wrote:You don&amp;#039;t have...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2058&amp;title=sendemailasp-error#2058</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=273">jason2004</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/17/06 at 4:33pm<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mike" alt="Originally posted by mike" style="vertical-align: text-bottom;" /> <strong>mike wrote:</strong><br /><br />You don't have cmail.asp in cgi-bin</td></tr></table><br />I do have CMail.asp in cgi-bin folder.<br /><br />&lt;%<br /> '----------------------------------------------------------- ---------<br />' CMail.asp<br />'<br />' Copyright (c) 1995-2003 ComCity Corporation.  All Rights Reserved.<br />'<br />'<br />'<br />' Define all Function Calls, Subroutines, and classes in this file<br />'<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CREATED February 19, 2001 by ip<br />'<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MODIFICATIONS<br /> '----------------------------------------------------------- ---------<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/19/01&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;mtb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;Needs Release 1.0<br /> '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1/14/03&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;Updated to use Bamboo<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1/29/03  wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;Updated to use JMail<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2/4/03  wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;Updated Bamboo to send mail using objMail.Send instead of objMail.SendMail<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3/27/03  wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;Updated to use Persits ASPEmail<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7/2/03  wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;Updated CDONTS to have option to send HTML-based email<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7/2/03  wc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;Updated to send via CDOSYS<br />'<br /> '----------------------------------------------------------- ---------<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXAMPLE<br />'<br />'Use ScCdo for CDONTS, ScAspMail for Serverobject's ASPMail, Bamboo for Bamboo Email, JMail for JMail,<br />'ScAspEmail for Persits ASPEmail, CDOSYS for CDOSYS<br />'<br />'The AddToAddress takes three parameters Name, email, address, type(1=To, 2=Cc, 3=Bcc)<br />'these are all required or you will get an error. Each Name must be unique. If you<br />'don't have a name just pass up a made up one. or the email address.<br />'<br />'Set objMail = New CMail<br />'objMail.SetPluginType = "ScCdo"<br />'objMail.SetFromAddress=mymail<br />'objMail.AddToAddress "Jim Bim", toaddress, 1<br />'objMail.AddToAddress "Old Granddad", ccaddress, 2<br />'objMail.AddToAddress "Johnny Walker", bccaddress, 3<br />'objMail.SetSubject=mysubject<br />'objMail.SetBody=themessage<br />'mailres=objMail.SendMessage()<br />'Set objMail = Nothing<br /> '----------------------------------------------------------- ---------<br />'**Start Encode**<br /> ]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 16:33:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2058&amp;title=sendemailasp-error#2058</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error : You don&amp;#039;t have cmail.asp...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2054&amp;title=sendemailasp-error#2054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/17/06 at 9:19am<br /><br />You don't have cmail.asp in cgi-bin]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 09:19:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2054&amp;title=sendemailasp-error#2054</guid>
  </item> 
  <item>
   <title><![CDATA[sendemail.asp error : sendemail.asp   Microsoft VBScript...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2051&amp;title=sendemailasp-error#2051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=273">jason2004</a><br /><strong>Subject:</strong> 582<br /><strong>Posted:</strong> July/16/06 at 9:21pm<br /><br />sendemail.asp<br /> <br />Microsoft VBScript runtime error '800a01fa' <br /><br />Class not defined: 'CSimpleAdo' <br /><br />/cgi-bin/sendemail.asp, line 17 <br /><br /><br /><br />Line 17 is:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set SimpleAdo = New CSimpleAdo<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimpleAdo.setConnectionString = Session("ConnectionString")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RS = SimpleAdo.getRecordSet(SQLStmt)<br /><br />Any idea what's wrong?<br />SalesCart Pro 5<br /><br />]]>
   </description>
   <pubDate>Sun, 16 Jul 2006 21:21:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=582&amp;PID=2051&amp;title=sendemailasp-error#2051</guid>
  </item> 
 </channel>
</rss>