|
 |
asp_cdo thread: Session variables in a body
Message #1 by "Brent Williams" <brent@a...> on Wed, 5 Jul 2000 16:07:33 -0230
|
|
I'm tring to send some stored session variables that im using to keep trak
of a few items and prices and I want to know how can I send those session
variables, what i have now just sends me a blank email!
This is my code!
I can view the selected item in the same file! but I can't send that
information.
Dim isubtotal, i, scartItem, arrCart
scartItem = Session("cartItem")
arrCart = Session("MyCart")
isubtotal = 0
Dim strBody
Dim objCDOMail
strBody = strBody & strName & " "
strBody = strBody & strPhone
For i = 1 to scartItem
strBody = strBody & Cstr(i) & arrCart(cProductCode,i)
strBody = strBody & arrCart(cProductname,i)
strBody = strBody & CStr(i) & arrCart(cQuantity,i)
strBody = strBody & FormatCurrency(arrCart(cUnitPrice,i),2)
strBody = strBody & FormatCurrency(arrCart(cUnitPrice,i) *
arrCart(cQuantity,i),2)
isubtotal = isubtotal + (arrCart(cUnitPrice,i) * arrCart(cQuantity,i))
strBody = strBody & FormatCurrency(isubtotal,2)
strBody = strBody & isubtotal
Next
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
With objCDOMail
.From = "info@a..."
.To = "brent@a..."
.Subject = "quote test"
.Body = strBody
.Send ' Send the message!
End With
Set objCDOMail = Nothing
Response.Write "Thank - You, Your Quote Has Been Successfully Sent!"
Session.Abandon
Message #2 by "oven oliver" <burengnong@b...> on Fri, 7 Jul 2000 13:15:34 +0700
|
|
Hi,there
U couldn't send yrs mail , I guess
first U should check yrs SMTP service whether it works or not
and check yrs Internet Connection
Maybe U should send it through yrs all clients and then send it to www
Good luck
Message #3 by "Brent Williams" <brent@a...> on Fri, 7 Jul 2000 13:48:22 -0230
|
|
Actully the mail does send but it just doesn't send the session variables! I
have a text input for name and number and that sends, but the two session
vars are being display on the and in the body variable but when i click on
send all that sends is the name and number. the other information isn't
there. my smtp with iis5 is working fine.
brent
----- Original Message -----
From: "oven oliver"
To: "ASP CDO" <asp_cdo@p...>
Sent: Friday, July 07, 2000 3:45 AM
Subject: [asp_cdo] Re: Session variables in a body
> Hi,there
> U couldn't send yrs mail , I guess
> first U should check yrs SMTP service whether it works or not
> and check yrs Internet Connection
> Maybe U should send it through yrs all clients and then send it to www
> Good luck
>
>
|
|
 |