| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi I am new to ASP and would like to know whether this is the right forum to post to. If not please advise what would the best group to post to. My problem is a mailing asp file when it loads up in the browser the page is blank. There are no error messages. 1) I fill in a form with my details - OK 2) This then passes me on to another form to fill in my payment details on a secure server. - OK 3) This is then supposed to pass the payment details on to an ASP script but when this ASP script is loaded, the page is blank where I'd be expecting a thank-you message or an error message saying I'd not completed the form correctly...any help gratefully received. Regards Jeremy script: <% On Error resume Next Dim TBdy Dim MyCDO CR = Chr(13) Set MyCDO = Server.CreateObject("CDONTS.NewMail") If IsObject (MyCDO) Then MyCDO.From = "Joe Bloggs" MyCDO.To = "email@mydomain.co.uk" MyCDO.Subject = "***URGENT PAYMENT***" TBdy = &" Card Type : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" Card Number : " &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Card Type : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" Card Number : " &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Expiry Date : " &Request.Form("expirydate")&vbCrLf &vbCrLf &" Security Code : " &Request.Form("security")&vbCrLf &vbCrLf &" Card Holders Name : " &Request.Form("cardholdersname")&vbCrLf &vbCrLf &" Billing Address : " &Request.Form("billingaddress")&vbCrLf &vbCrLf &" Post Code : " &Request.Form("postcode")&vbCrLf &vbCrLf &" Country : " &Request.Form("country")&vbCrLf &vbCrLf &" Tel : " &Request.Form("tel")&vbCrLf &vbCrLf &" Fax : " &Request.Form("fax")&vbCrLf &vbCrLf TBdy = TBdy & "Thank you." MyCDO.Body = TBdy MyCDO.Importance = 2 MyCDO.value("Reply-to")=Request.Form("cardtype") MyCDO.Send Set MyCDO = nothing if Mailer.SendMail then Response.Redirect("http://www.mydomain.co.uk/test/thanks.htm") else Response.Write("Please make sure you fill in all the required fields in the form. Click on the 'Back' button on your browser to try again please") end if %> |
|
#2
| |||
| |||
| "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message news:fv4olt$h2o$1$8300dec7@news.demon.co.uk... > Hi > I am new to ASP and would like to know whether this is the right forum > to post to. If not please advise what would the best group to post to. > > My problem is a mailing asp file when it loads up in the browser the > page is blank. There are no error messages. > > 1) I fill in a form with my details - OK > > 2) This then passes me on to another form to fill in my payment details > on a secure server. - OK > > 3) This is then supposed to pass the payment details on to an ASP script > but when this ASP script is loaded, the page is blank where I'd be > expecting a thank-you message or an error message saying I'd not > completed the form correctly...any help gratefully received. > > > Regards > Jeremy > > script: > > <% > On Error resume Next If you comment or delete the above line, perhaps you will see what the problem is. You are sending credit card details in an email? -- roger > Dim TBdy > Dim MyCDO > CR = Chr(13) > Set MyCDO = Server.CreateObject("CDONTS.NewMail") > If IsObject (MyCDO) Then > MyCDO.From = "Joe Bloggs" > MyCDO.To = "email@mydomain.co.uk" > MyCDO.Subject = "***URGENT PAYMENT***" > TBdy = &" Card Type : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" > Card Number : " &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Card Type > : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" Card Number : " > &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Expiry Date : " > &Request.Form("expirydate")&vbCrLf &vbCrLf &" Security Code : " > &Request.Form("security")&vbCrLf &vbCrLf &" Card Holders Name : " > &Request.Form("cardholdersname")&vbCrLf &vbCrLf &" Billing Address : " > &Request.Form("billingaddress")&vbCrLf &vbCrLf &" Post Code : " > &Request.Form("postcode")&vbCrLf &vbCrLf &" Country : " > &Request.Form("country")&vbCrLf &vbCrLf &" Tel : " > &Request.Form("tel")&vbCrLf &vbCrLf &" Fax : " > &Request.Form("fax")&vbCrLf &vbCrLf > TBdy = TBdy & "Thank you." > MyCDO.Body = TBdy > MyCDO.Importance = 2 > MyCDO.value("Reply-to")=Request.Form("cardtype") > MyCDO.Send > Set MyCDO = nothing > if Mailer.SendMail then > Response.Redirect("http://www.mydomain.co.uk/test/thanks.htm") > else > > Response.Write("Please make sure you fill in all the required fields in > the form. Click on the 'Back' button on your browser to try again please") > > end if > %> |
|
#3
| |||
| |||
| roger wrote: > "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message > news:fv4olt$h2o$1$8300dec7@news.demon.co.uk... >> Hi >> I am new to ASP and would like to know whether this is the right forum >> to post to. If not please advise what would the best group to post to. >> >> My problem is a mailing asp file when it loads up in the browser the >> page is blank. There are no error messages. >> >> 1) I fill in a form with my details - OK >> >> 2) This then passes me on to another form to fill in my payment details >> on a secure server. - OK >> >> 3) This is then supposed to pass the payment details on to an ASP script >> but when this ASP script is loaded, the page is blank where I'd be >> expecting a thank-you message or an error message saying I'd not >> completed the form correctly...any help gratefully received. >> >> >> Regards >> Jeremy >> >> script: >> >> <% >> On Error resume Next > > If you comment or delete the above line, perhaps you will see what the > problem is. > > You are sending credit card details in an email? > Yes, but this is going through a secure server..... I am able to see errors now.... getting error: Error Type: Sun ONE ASP VBScript runtime (0x800A01A8) Object required: 'Mailer' mail1.asp, line 17 ============================= <% Dim TBdy Dim MyCDO CR = Chr(13) Set MyCDO = Server.CreateObject("CDONTS.NewMail") If IsObject (MyCDO) Then MyCDO.From = "webreading@mydomain.co.uk" MyCDO.To = "info@mydomain.co.uk" MyCDO.Subject = "***URGENT PAYMENT***" TBdy = " Card Type : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" Card Number : " &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Card Type : " &Request.Form("cardtype")&vbCrLf &vbCrLf &" Card Number : " &Request.Form("cardnumber")&vbCrLf &vbCrLf &" Expiry Date : " &Request.Form("expirydate")&vbCrLf &vbCrLf &" Security Code : " &Request.Form("security")&vbCrLf &vbCrLf &" Card Holders Name : " &Request.Form("cardholdersname")&vbCrLf &vbCrLf &" Billing Address : " &Request.Form("billingaddress")&vbCrLf &vbCrLf &" Post Code : " &Request.Form("postcode")&vbCrLf &vbCrLf &" Country : " &Request.Form("country")&vbCrLf &vbCrLf &" Tel : " &Request.Form("tel")&vbCrLf &vbCrLf &" Fax : " &Request.Form("fax")&vbCrLf &vbCrLf TBdy = TBdy & "Thank you." MyCDO.Body = TBdy MyCDO.Importance = 2 MyCDO.value("Reply-to")=Request.Form("cardtype") MyCDO.Send Set MyCDO = nothing if Mailer.SendMail then Response.Redirect("thanks.htm") else Response.Write("Please make sure you fill in all the required fields in the form. Click on the 'Back' button on your browser to try again please") end if end if %> |
|
#4
| |||
| |||
| "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message news:fv5j8v$gd0$1$8302bc10@news.demon.co.uk... > > I am able to see errors now.... getting error: > Error Type: > Sun ONE ASP VBScript runtime (0x800A01A8) > Object required: 'Mailer' > mail1.asp, line 17 > ============================= > > > <% > Dim TBdy > Dim MyCDO > CR = Chr(13) > Set MyCDO = Server.CreateObject("CDONTS.NewMail") CDONTS was deprecated about 8 or 9 years ago. It's unlikely to be installed on the server you are using. Use CDO instead: |
|
#5
| |||
| |||
| "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message news:fv5j8v$gd0$1$8302bc10@news.demon.co.uk... > Set MyCDO = Server.CreateObject("CDONTS.NewMail") ....and the rest of my reply.... http://classicasp.aspfaq.com/email/h...-with-cdo.html -- Mike Brind Microsoft MVP ASP/ASP.NET |
|
#6
| |||
| |||
| Mike Thanks for your reply! Most helpful, however the hosting company does not support CDO and has requested I use CDONTS. Regards Jeremy Mike Brind [MVP] wrote: > "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message > news:fv5j8v$gd0$1$8302bc10@news.demon.co.uk... >> Set MyCDO = Server.CreateObject("CDONTS.NewMail") > > ...and the rest of my reply.... > > http://classicasp.aspfaq.com/email/h...-with-cdo.html > > -- > Mike Brind > Microsoft MVP ASP/ASP.NET > > |
|
#7
| |||
| |||
| "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message news:fv83e2$bcj$1$8300dec7@news.demon.co.uk... > > > Mike Brind [MVP] wrote: >> "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message >> news:fv5j8v$gd0$1$8302bc10@news.demon.co.uk... >>> Set MyCDO = Server.CreateObject("CDONTS.NewMail") >> >> ...and the rest of my reply.... >> >> http://classicasp.aspfaq.com/email/h...-with-cdo.html >> >> -- >> Mike Brind >> Microsoft MVP ASP/ASP.NET > Mike > > Thanks for your reply! Most helpful, however the hosting company does not > support CDO and has requested I use CDONTS. > Then you need to find another host. CDO replaced CDONTS from Win2k onwards. So they must be running NT4 or something. OTOH, are you sure you/they have got it the right way round? Your error message suggests the reverse of what you believe they told you. Try the CDO code to see if it works. -- Mike Brind Microsoft MVP - ASP/ASP.NET |
|
#8
| |||
| |||
| Jezza wrote on Mon, 28 Apr 2008 23:35:29 +0100: > roger wrote: >> "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message >> news:fv4olt$h2o$1$8300dec7@news.demon.co.uk... >>> Hi >>> I am new to ASP and would like to know whether this is the right >>> forum to post to. If not please advise what would the best group to >>> post to. >>> My problem is a mailing asp file when it loads up in the browser the >>> page is blank. There are no error messages. >>> 1) I fill in a form with my details - OK >>> 2) This then passes me on to another form to fill in my payment >>> details on a secure server. - OK >>> 3) This is then supposed to pass the payment details on to an ASP >>> script but when this ASP script is loaded, the page is blank where >>> I'd be expecting a thank-you message or an error message saying I'd >>> not completed the form correctly...any help gratefully received. >>> Regards >>> Jeremy >>> script: >>> <% >>> On Error resume Next >> If you comment or delete the above line, perhaps you will see what >> the problem is. >> You are sending credit card details in an email? > Yes, but this is going through a secure server..... Ye gads! I hope you encrypt the email first. > I am able to see errors now.... getting error: > Error Type: > Sun ONE ASP VBScript runtime (0x800A01A8) > Object required: 'Mailer' > mail1.asp, line 17 ============================= Ok, so line 17 is the problem I see you don't encrypt the card details - can you send the URL of this site so I can make sure to add it to my list of blocked sites. > MyCDO.Send > Set MyCDO = nothing > if Mailer.SendMail then > Response.Redirect("thanks.htm") else What is Mailer? You don't have a Mailer object in your code. What you'd probably need to change this to is MyCDO.Send Set MyCDO = nothing if Err.Number = 0 then Response.Redirect("thanks.htm") else At a guess, Sun ONE doesn't support CDO, only CDONTS. And I guess if there's an error in the ASP at runtime with Sun ONE, it just gives up at that point but hides the error, otherwise you should have seen the "Please make sure you fill in all the required fields in the form. Click on the 'Back' button on your browser to try again please" message instead of just a blank page - unless your HTML is badly formatted. -- Dan |
|
#9
| |||
| |||
| On 28 Apr, 23:35, Jezza <jezza@s_p_a_m.jonoo.demon.co.uk> wrote: > roger wrote: > > "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message > >news:fv4olt$h2o$1$8300dec7@news.demon.co.uk... > >> Hi > >> I am new to ASP and would like to know whether this is the right forum > >> to post to. If not please advise what would the best group to post to. > > >> My problem is a mailing asp file when it loads up in the browser the > >> page is blank. There are no error messages. > > >> 1) I fill in a form with my details - OK > > >> 2) This then passes me on to another form to fill in my payment details > >> on a secure server. - OK > > >> 3) This is then supposed to pass the payment details on to an ASP script > >> but when this ASP script is loaded, the page is blank where I'd be > >> expecting a thank-you message or an error message saying I'd not > >> completed the form correctly...any help gratefully received. > > >> Regards > >> Jeremy > > >> script: > > >> <% > >> On Error resume Next > > > If you comment or delete the above line, perhaps you will see what the > > problem is. > > > You are sending credit card details in an email? > > Yes, but this is going through a secure server..... But none of the places the email will travel through will be! |
|
#10
| |||
| |||
| Captain Paralytic wrote: > On 28 Apr, 23:35, Jezza <jezza@s_p_a_m.jonoo.demon.co.uk> wrote: >> roger wrote: >>> "Jezza" <jezza@s_p_a_m.jonoo.demon.co.uk> wrote in message >>> news:fv4olt$h2o$1$8300dec7@news.demon.co.uk... >>>> Hi >>>> I am new to ASP and would like to know whether this is the right forum >>>> to post to. If not please advise what would the best group to post to. >>>> My problem is a mailing asp file when it loads up in the browser the >>>> page is blank. There are no error messages. >>>> 1) I fill in a form with my details - OK >>>> 2) This then passes me on to another form to fill in my payment details >>>> on a secure server. - OK >>>> 3) This is then supposed to pass the payment details on to an ASP script >>>> but when this ASP script is loaded, the page is blank where I'd be >>>> expecting a thank-you message or an error message saying I'd not >>>> completed the form correctly...any help gratefully received. >>>> Regards >>>> Jeremy >>>> script: >>>> <% >>>> On Error resume Next >>> If you comment or delete the above line, perhaps you will see what the >>> problem is. >>> You are sending credit card details in an email? >> Yes, but this is going through a secure server..... > > But none of the places the email will travel through will be! Surely if the details are "emailed" via a secure server to Paypal via their payments system (and nowhere else) then this data is safe? Or am I just kidding myself? Thanks for your reply! Regards Jeremy |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.