<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - Classic ASP Professional</title>
		<link>http://p2p.wrox.com</link>
		<description>For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 21:09:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - Classic ASP Professional</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>OOP ASP question</title>
			<link>http://p2p.wrox.com/classic-asp-professional/76983-oop-asp-question.html</link>
			<pubDate>Tue, 10 Nov 2009 19:25:25 GMT</pubDate>
			<description><![CDATA[I'm working on a class and I'm curious about setting properties values.

I'm just getting started in OOP and I'm using some online examples. I've...]]></description>
			<content:encoded><![CDATA[<div>I'm working on a class and I'm curious about setting properties values.<br />
<br />
I'm just getting started in OOP and I'm using some online examples. I've been able to successfully incorporate 2 main classes into my application.<br />
<br />
I'm curious about how to make this work or possibly a different method:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Public Class Foo<br />
&nbsp; &nbsp; Private privID<br />
&nbsp; &nbsp; Private privName<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Private Sub Class_Initialize()<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' granted the pID isn't set yet, but maybe define another method to get it<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' this was all just flying by the seat of my pants<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call mGetName<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Public Property Get pID<br />
&nbsp; &nbsp; &nbsp; &nbsp; pID = privID<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; Public Property Let pID(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; privID = value<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Public Property pName<br />
&nbsp; &nbsp; &nbsp; &nbsp; pName = privName<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Private Sub mGetName<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' some query here WHERE ID = pID<br />
&nbsp; &nbsp; &nbsp; &nbsp; privName = [query results]<br />
&nbsp; &nbsp; End Sub<br />
End Class<br />
<br />
Dim cFoo, Name<br />
Set cFoo = New Foo<br />
cFoo.pID = (Form/QueryString/Session)<br />
Name = cFoo.pName<br />
<br />
&lt;%= cFoo.pName %&gt;</code><hr />
</div>Versus this idea:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Public Class Foo<br />
&nbsp; &nbsp; Private privName<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Public Property Get pName<br />
&nbsp; &nbsp; &nbsp; &nbsp; pName = privName<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; Public Property Let pName(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; privName = value<br />
&nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Private Function mGetName(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ' some query here WHERE ID = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; mGetName = [query results]<br />
&nbsp; &nbsp; End Function<br />
End Class<br />
<br />
Dim cFoo, Name<br />
Set cFoo = New Foo<br />
cFoo.pName = cFoo.mGetName(Form/QueryString/Session)<br />
<br />
&lt;%= cFoo.pName %&gt;</code><hr />
</div>Any advantage of one technique over the other? I'd imagine there are even other techniques.<br />
<br />
Any insight is appreciated.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/classic-asp-professional-63/">Classic ASP Professional</category>
			<dc:creator>LAYGO</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/classic-asp-professional/76983-oop-asp-question.html</guid>
		</item>
		<item>
			<title><![CDATA[Microsoft VBScript runtime error '800a000d' error]]></title>
			<link>http://p2p.wrox.com/classic-asp-professional/76907-microsoft-vbscript-runtime-error-800a000d-error.html</link>
			<pubDate>Wed, 04 Nov 2009 21:43:37 GMT</pubDate>
			<description><![CDATA[Hi there, as I've mentioned in earlier posts I'm a designer and just getting into the coding side of things. Been building a shopping cart using...]]></description>
			<content:encoded><![CDATA[<div>Hi there, as I've mentioned in earlier posts I'm a designer and just getting into the coding side of things. Been building a shopping cart using various plug ins and everything is going fine apart from when I try to send out the customers confirmation email.<br />
<br />
I have two files. One called orderconfirmed.asp and another called functions_email.asp<br />
<br />
In theory orderconfirmed.asp should trigger functions_email.asp and send an email to the customer (The whole process is triggered by IPN from Paypal hopefully)<br />
<br />
So I'm getting this error:<br />
<br />
Microsoft VBScript runtime error '800a000d'<br />
<br />
Type mismatch: 'SendEmail'<br />
<br />
/orderconfirmed.asp, line 69<br />
<br />
Here's the order confirmed page with line 69 highlighted.<br />
<br />
<font color="Red">SendEmail CustomersRS(&quot;CustomerEmail&quot;)</font><br />
<br />
&lt;%@LANGUAGE=&quot;VBSCRIPT&quot;%&gt; <br />
&lt;!--#include file=&quot;Connections/CharonCart.asp&quot; --&gt;<br />
&lt;%<br />
Dim OrderID,CustomerID<br />
OrderID=Session(&quot;OrderID&quot;)<br />
CustomerID=Request.Cookies(&quot;Products&quot;)(&quot;CustomerID  &quot;)<br />
%&gt;<br />
&lt;%<br />
Dim CustomersRS__value<br />
CustomersRS__value = &quot;0&quot;<br />
if (CustomerID &lt;&gt; &quot;&quot;) then CustomersRS__value = CustomerID<br />
%&gt;<br />
&lt;%<br />
Dim OrderDetailsRS__value1<br />
OrderDetailsRS__value1 = &quot;0&quot;<br />
if (OrderID &lt;&gt; &quot;&quot;) then OrderDetailsRS__value1 = OrderID<br />
%&gt;<br />
&lt;%<br />
Dim OrdersRS__value<br />
OrdersRS__value = &quot;0&quot;<br />
if (OrderID  &lt;&gt; &quot;&quot;) then OrdersRS__value = OrderID <br />
%&gt;<br />
&lt;%<br />
set CustomersRS = Server.CreateObject(&quot;ADODB.Recordset&quot;)<br />
CustomersRS.ActiveConnection = MM_CharonCart_STRING<br />
CustomersRS.Source = &quot;SELECT *  FROM Customers  WHERE CustomerID=&quot; + Replace(CustomersRS__value, &quot;'&quot;, &quot;''&quot;) + &quot;&quot;<br />
CustomersRS.CursorType = 0<br />
CustomersRS.CursorLocation = 3<br />
CustomersRS.LockType = 3<br />
CustomersRS.Open()<br />
CustomersRS_numRows = 0<br />
%&gt;<br />
&lt;%<br />
set OrderDetailsRS = Server.CreateObject(&quot;ADODB.Recordset&quot;)<br />
OrderDetailsRS.ActiveConnection = MM_CharonCart_STRING<br />
OrderDetailsRS.Source = &quot;SELECT *,UnitPrice*Quantity as LineTotal  FROM OrderDetails  WHERE OrderID=&quot; + Replace(OrderDetailsRS__value1, &quot;'&quot;, &quot;''&quot;) + &quot;&quot;<br />
OrderDetailsRS.CursorType = 0<br />
OrderDetailsRS.CursorLocation = 2<br />
OrderDetailsRS.LockType = 3<br />
OrderDetailsRS.Open()<br />
OrderDetailsRS_numRows = 0<br />
%&gt;<br />
&lt;%<br />
set OrdersRS = Server.CreateObject(&quot;ADODB.Recordset&quot;)<br />
OrdersRS.ActiveConnection = MM_CharonCart_STRING<br />
OrdersRS.Source = &quot;SELECT *  FROM Orders  WHERE OrderID=&quot; + Replace(OrdersRS__value, &quot;'&quot;, &quot;''&quot;) + &quot;&quot;<br />
OrdersRS.CursorType = 0<br />
OrdersRS.CursorLocation = 2<br />
OrdersRS.LockType = 3<br />
OrdersRS.Open()<br />
OrdersRS_numRows = 0<br />
%&gt;<br />
&lt;%<br />
Dim Repeat1__numRows<br />
Dim Repeat1__index<br />
<br />
Repeat1__numRows = -1<br />
Repeat1__index = 0<br />
OrderDetailsRS_numRows = OrderDetailsRS_numRows + Repeat1__numRows<br />
%&gt;<br />
&lt;!--#include file=&quot;functions_email.asp&quot; --&gt;<br />
&lt;%<br />
'This is the part where we send out emails. <br />
'There's a 101 different ways of doing it. <br />
'The function used are in the file functions_email.asp<br />
'Basically you can edit the template in Email.asp, the function will send that page as a HTML email.<br />
'So, you now have a choice to use CDONTS, JMail or ASP Mail. Just comment/uncomment the appropriate lines below<br />
<br />
<font color="Red">SendEmail CustomersRS(&quot;CustomerEmail&quot;)</font><br />
'SendJmailEmail<br />
'SendAspMailEmail<br />
SendAspEmailEmail<br />
<br />
'Uncomment this line to see whats sent.<br />
'Response.Write Mailbody<br />
'Response.End()<br />
<br />
%&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Order Confirmed&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;link rel=&quot;stylesheet&quot; href=&quot;Styles.css&quot;&gt;<br />
&lt;/head&gt;<br />
&lt;body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 bgcolor=&quot;#FFFFFF&quot; onLoad=&quot;&quot;&gt;<br />
&lt;!--#include file=&quot;Header.asp&quot; --&gt;<br />
&lt;div id=&quot;content&quot;&gt; <br />
  &lt;div id=&quot;breadCrumb&quot;&gt; <br />
  &lt;/div&gt; <br />
  &lt;h2 id=&quot;pageName&quot;&gt;Order Confirmed &lt;/h2&gt; <br />
  &lt;div class=&quot;story&quot;&gt;<br />
    &lt;table width=&quot;500&quot; border=&quot;0&quot; cellpadding=&quot;3&quot;&gt;<br />
      &lt;tr&gt;<br />
        &lt;td valign=&quot;top&quot;&gt;<br />
          &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; class=&quot;story&quot;&gt;<br />
            &lt;tr&gt;<br />
              &lt;td valign=&quot;top&quot; bgcolor=&quot;white&quot;&gt;&lt;b&gt;Contact Information&lt;/b&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;50%&quot; rowspan=&quot;2&quot; valign=&quot;top&quot; bgcolor=&quot;white&quot;&gt;&lt;strong&gt;OrderID: &lt;%=(OrdersRS.Fields.Item(&quot;OrderID&quot;).Value)%&gt;&lt;br&gt;<br />
            Date: &lt;/strong&gt;&lt;%=(OrdersRS.Fields.Item(&quot;OrderDate&quot;).Value  )%&gt; &lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr&gt;<br />
              &lt;td width=&quot;50%&quot; valign=&quot;top&quot; bgcolor=&quot;white&quot;&gt; &lt;%=(CustomersRS.Fields.Item(&quot;FirstName&quot;).Value)%&gt;&amp;  nbsp;&lt;%=(CustomersRS.Fields.Item(&quot;LastName&quot;).Value  )%&gt;&lt;b&gt;&lt;br&gt;<br />
                &lt;/b&gt;&lt;br&gt;<br />
                &lt;b&gt;Phone:&lt;/b&gt; &lt;%=(CustomersRS.Fields.Item(&quot;Phone&quot;).Value)%&gt;&lt;br  &gt;<br />
                &lt;b&gt;Fax:&lt;/b&gt; &lt;%=(CustomersRS.Fields.Item(&quot;Fax&quot;).Value)%&gt;&lt;br&gt;<br />
                &lt;b&gt;Email:&lt;/b&gt; &lt;%=(CustomersRS.Fields.Item(&quot;CustomerEmail&quot;).Value  )%&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr bgcolor=&quot;#eeeeee&quot;&gt;<br />
              &lt;td width=&quot;50%&quot; height=&quot;25&quot;&gt;&lt;b&gt;Invoice details&lt;/b&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;50%&quot; height=&quot;25&quot;&gt;&lt;b&gt;Delivery details&lt;/b&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr bgcolor=&quot;white&quot;&gt;<br />
              &lt;td width=&quot;50%&quot; valign=&quot;top&quot; bgcolor=&quot;white&quot;&gt; &lt;%=(CustomersRS.Fields.Item(&quot;BillingAddress1&quot;).Val  ue)%&gt;&lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;BillingRegion&quot;).Value  )%&gt;&lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;BillingCountry&quot;).Valu  e)%&gt;&lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;BillingPostalCode&quot;).V  alue)%&gt;&lt;br&gt;<br />
              &lt;/td&gt;<br />
              &lt;td width=&quot;50%&quot; valign=&quot;top&quot; bgcolor=&quot;white&quot;&gt;&lt;%=(CustomersRS.Fields.Item(&quot;Deliv  eryAddress1&quot;).Value)%&gt; &lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;DeliveryAddress2&quot;).Va  lue)%&gt;&lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;ShipCity&quot;).Value)%&gt;&lt;b  r&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;BillingCountry&quot;).Valu  e)%&gt;&lt;br&gt;<br />
                  &lt;%=(CustomersRS.Fields.Item(&quot;ShipPostalCode&quot;).Valu  e)%&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
          &lt;/table&gt;<br />
          &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; class=&quot;story&quot;&gt;<br />
            &lt;tr bgcolor=&quot;#eeeeee&quot; class=&quot;tableheader&quot;&gt;<br />
              &lt;td width=&quot;6%&quot; valign=&quot;middle&quot;&gt;&lt;b&gt;Qty&lt;/b&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;35%&quot; valign=&quot;middle&quot;&gt;&lt;b&gt;Item&lt;/b&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;13%&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;Size&lt;/strong&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;13%&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;Colour&lt;/strong&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;19%&quot; height=&quot;25&quot; align=&quot;right&quot; valign=&quot;middle&quot;&gt;&lt;b&gt;Unit<br />
                  Price&lt;/b&gt;&lt;/td&gt;<br />
              &lt;td width=&quot;14%&quot; align=&quot;right&quot; valign=&quot;middle&quot;&gt;&lt;b&gt;Total&lt;/b&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;% <br />
While ((Repeat1__numRows &lt;&gt; 0) AND (NOT OrderDetailsRS.EOF)) <br />
%&gt;<br />
            &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br />
              &lt;td align=center valign=middle bgcolor=#FFFFFF&gt;&lt;%=(OrderDetailsRS.Fields.Item(&quot;Qu  antity&quot;).Value)%&gt; &lt;/td&gt;<br />
              &lt;td height=&quot;30&quot; valign=&quot;middle&quot; bgcolor=#FFFFFF&gt;&lt;%=(OrderDetailsRS.Fields.Item(&quot;<acronym title="Google Page Ranking">Pr</acronym>  oductName&quot;).Value)%&gt;&lt;br&gt;<br />
              &lt;/td&gt;<br />
              &lt;td valign=middle bgcolor=#FFFFFF&gt;&lt;%=(OrderDetailsRS.Fields.Item(&quot;<acronym title="Google Page Ranking">Pr</acronym>  oductSize&quot;).Value)%&gt;&lt;/td&gt;<br />
              &lt;td valign=middle bgcolor=#FFFFFF&gt;&lt;%=(OrderDetailsRS.Fields.Item(&quot;Co  lour&quot;).Value)%&gt;&lt;/td&gt;<br />
              &lt;td align=&quot;right&quot; valign=middle bgcolor=#FFFFFF&gt;&amp;pound;&lt;%= FormatNumber((OrderDetailsRS.Fields.Item(&quot;UnitPric  e&quot;).Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;<br />
              &lt;td align=&quot;right&quot; valign=middle bgcolor=#FFFFFF&gt;&amp;pound;&lt;%= FormatNumber((OrderDetailsRS.Fields.Item(&quot;LineTota  l&quot;).Value), 2, -2, -2, -2) %&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;% <br />
  Repeat1__index=Repeat1__index+1<br />
  Repeat1__numRows=Repeat1__numRows-1<br />
  OrderDetailsRS.MoveNext()<br />
Wend<br />
%&gt;<br />
          &lt;/table&gt;<br />
          &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; class=&quot;story&quot;&gt;<br />
            &lt;tr&gt;<br />
              &lt;td width=&quot;32%&quot; rowspan=&quot;5&quot; valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
              &lt;td width=&quot;68%&quot; align=&quot;right&quot;&gt; Total:&amp;pound;&lt;%= FormatNumber((OrdersRS.Fields.Item(&quot;SubTotal&quot;).Val  ue), 2, -2, -2, -2) %&gt; &lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr&gt;<br />
              &lt;td align=&quot;right&quot;&gt;Discount:&amp;pound;&lt;%= FormatNumber((OrdersRS.Fields.Item(&quot;Discount&quot;).Val  ue), 2, -2, -2, -2) %&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr&gt;<br />
              &lt;td align=&quot;right&quot;&gt;Shipping:&amp;pound;&lt;%= FormatNumber((OrdersRS.Fields.Item(&quot;Freight&quot;).Valu  e), 2, -2, -2, -2) %&gt; &lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr&gt;<br />
              &lt;td align=&quot;right&quot;&gt; &lt;b&gt;Grand Total: &amp;pound;&lt;%= FormatNumber((OrdersRS.Fields.Item(&quot;GrandTotal&quot;).V  alue), 2, -2, -2, -2) %&gt; &lt;/b&gt; &lt;/td&gt;<br />
            &lt;/tr&gt;<br />
            &lt;tr&gt;<br />
              &lt;td align=&quot;right&quot;&gt;(VAT:&amp;pound;&lt;%= FormatNumber((OrdersRS.Fields.Item(&quot;SalesTax&quot;).Val  ue), 2, -2, -2, -2) %&gt;)&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
        &lt;/table&gt;&lt;/td&gt;<br />
      &lt;/tr&gt;<br />
    &lt;/table&gt;<br />
    &lt;table width=&quot;500&quot; border=&quot;0&quot;&gt;<br />
      &lt;tr align=&quot;center&quot; valign=&quot;top&quot;&gt;<br />
        &lt;td class=&quot;story&quot;&gt;<br />
          &lt;p&gt;Thank you for your order. Please &lt;a href=&quot;javascript<b></b>:window.print()&quot;&gt;print<br />
        this page&lt;/a&gt; if you require an invoice.&lt;/p&gt;        &lt;/td&gt;<br />
      &lt;/tr&gt;<br />
    &lt;/table&gt;<br />
    &lt;p&gt;<br />
      &lt;!--#include file=&quot;footer.asp&quot; --&gt;<br />
    &lt;/p&gt;<br />
  &lt;/div&gt; <br />
  &lt;div class=&quot;story&quot;&gt;&lt;/div&gt; <br />
&lt;/div&gt; <br />
&lt;!--#include file=&quot;NavBar.asp&quot; --&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;%<br />
'Uncomment the following lines to abandon the Session and kill the cart<br />
'Session.Abandon<br />
'Response.Cookies(&quot;CharonCart&quot;)=&quot;&quot;<br />
%&gt;<br />
&lt;%<br />
CustomersRS.Close()<br />
%&gt;<br />
&lt;%<br />
OrderDetailsRS.Close()<br />
%&gt;<br />
&lt;%<br />
OrdersRS.Close()<br />
%&gt;<br />
<br />
and my email_functions page<br />
<br />
&lt;title&gt;???&lt;/title&gt;&lt;%<br />
'Start the functions<br />
%&gt;<br />
function SendEmail(c) <br />
Set objMail = Server.CreateObject(&quot;CDO.Message&quot;) <br />
'This section provides the configuration information for the remote SMTP server. <br />
<br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2 'Send the message using the network (SMTP over the network). <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) =&quot;???&quot; <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) = 25 <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/smtpusessl&quot;) = False 'Use SSL for the connection (True or False) <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) = 60 <br />
<br />
' If your server requires outgoing authentication uncomment the lines below and use a valid email address and password. <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&quot;) = 1 'basic (clear-text) authentication <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/sendusername&quot;) =&quot;websales@???.co.uk&quot; <br />
objMail.Configuration.Fields.Item (&quot;http://schemas.microsoft.com/cdo/configuration/sendpassword&quot;) =&quot;???&quot; <br />
<br />
objMail.Configuration.Fields.Update <br />
<br />
'End remote SMTP server configuration section== <br />
<br />
objMail.From = &quot;websales@???.co.uk&quot; <br />
objMail.To = c <br />
objMail.Bcc = &quot;orders@???.co.uk&quot; 'Maybe send a CC to your sales office <br />
objMail.Subject = &quot;Your order from ???&quot; <br />
objMail.HTMLBody = Mailbody <br />
'objMail.TextBody = mailbody <br />
'objMail.MailFormat=0 <br />
'objMail.BodyFormat=0 <br />
objMail.Send <br />
Set objMail = Nothing <br />
end function<br />
%&gt;<br />
<br />
As I say I'm new to coding so I appologies if it's a stupid mistake on my part. I've been banging my head against a brick wall on it so any help is really appreciated.<br />
<br />
Thanks in advance<br />
David</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/classic-asp-professional-63/">Classic ASP Professional</category>
			<dc:creator>futurehype</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/classic-asp-professional/76907-microsoft-vbscript-runtime-error-800a000d-error.html</guid>
		</item>
		<item>
			<title>Session Variable expires unexpectedly</title>
			<link>http://p2p.wrox.com/classic-asp-professional/76834-session-variable-expires-unexpectedly.html</link>
			<pubDate>Sat, 31 Oct 2009 09:00:01 GMT</pubDate>
			<description>Hi All, 

i am facing a little problem about Session variables:

here is the ref. page :
www.redboxindia.in/index.asp...</description>
			<content:encoded><![CDATA[<div>Hi All, <br />
<br />
i am facing a little problem about Session variables:<br />
<br />
here is the ref. page :<br />
<a href="http://www.redboxindia.in/index.asp" target="_blank">www.redboxindia.in/index.asp</a><br />
<br />
it has one link which shows session timeout value, session ID values and a link to check is session is still active or not.<br />
<br />
the code part is : <br />
index.asp :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><span style="color:#000080">&lt;htm&gt;</span><br />
...<br />
..<br />
<span style="color:#000080">&lt;body&gt;</span><br />
<span style="color:#000080">&lt;% Session(&quot;Test&quot;) = &quot;Ashok&quot; %&gt;</span><br />
<span style="color:#000080">&lt;%=(&quot;Session Timeout is :&quot; &amp; Session.timeout) %&gt;</span><br />
<span style="color:#000080">&lt;%=(&quot; and Session ID is :&quot; &amp; Session.SessionID) %&gt;</span><br />
<span style="color:#008000">&lt;a href=<span style="color:#0000FF">&quot;SessionCheck.asp&quot;</span> target=<span style="color:#0000FF">&quot;_blank&quot;</span>&gt;</span>session Check<span style="color:#008000">&lt;/a&gt;</span><br />
.<br />
.<br />
.<br />
.<span style="color:#000080">&lt;/body&gt;</span><br />
<span style="color:#000080">&lt;/html&gt;</span></code><hr />
</div>SessionCheck.asp:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><span style="color:#000080">&lt;% if Session(&quot;Test&quot;) &lt;&gt;</span> &quot;&quot; then<br />
&nbsp; &nbsp; &nbsp; &nbsp; response.Write(&quot;working&quot;)<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; Response.Write(&quot;terminated&quot;)<br />
&nbsp; &nbsp; end if <br />
%&gt;</code><hr />
</div>problem:<br />
within 1 minute my session variable gets expired and my webhosting company says to recheck the code...<br />
<br />
can someone help me out to. <br />
is there any programming error. <br />
<br />
thanks for your consideration <br />
<br />
best regards<br />
ashok sharma</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/classic-asp-professional-63/">Classic ASP Professional</category>
			<dc:creator>beetle_jaipur</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/classic-asp-professional/76834-session-variable-expires-unexpectedly.html</guid>
		</item>
	</channel>
</rss>
