matthewordie Posted December 12, 2006 Share Posted December 12, 2006 I'm using a simple asp script to send some form data to an email address. Right now I post the data to my asp page then the user has to hit the back button to get back to the website. How can I automatically redirect back to the site once the asp has sumbited my form data to my email? Link to comment Share on other sites More sharing options...
Mr.Jay Posted December 12, 2006 Share Posted December 12, 2006 <%' after email sentresponse.redirect("yourpage.asp")%> Link to comment Share on other sites More sharing options...
Guest giraffe Posted January 23, 2007 Share Posted January 23, 2007 <%' after email sentresponse.redirect("yourpage.asp")%> Q1.Could I substitute "yourpage.asp" for "http://pathtowebpage.com/page.html" in the code above?I'm trying to set up a registration form for a charity Gaming tournament on brinkster's free developer website(which supports ASP 3.0 and ASP.net). My plan is to use a CDO ASP file (or CDONTs) to process data POSTed to it from a HTML page created in Dreamweaver8. I've added a test file (code below) but when I typehttp://thrudbowl.brinkster.net/test1.aspI get a HTTP 500 internal server error. Q2.Is it possible Brinkster's server doesn't allow CDO / CDONT, if so is there a more widely accepted / simpler way of emailing html form data to my email? Or am I making a schoolboy error?<%Dim objCDOMail Set objCDOMail = Server.CreateObject("CDONTS.NewMail")objCDOMail.From = "hillf@hitechltd.com"objCDOMail.To = "mrfrankhil@yahoo.com"myMail.Subject="Sending email with CDO"objCDOMail.Subject = "Thrudbowl Registration"objCDOMail.Body = "This is a test"objCDOMail.SendSet objCDOMail = Nothing response.redirect("yourpage.asp")%> Any help greatly appreciated.The Giraffe Link to comment Share on other sites More sharing options...
Mr.Jay Posted January 23, 2007 Share Posted January 23, 2007 Q1: yes you can redirect to any page you like.Q2: I would suggest you email brinkster and ask them what asp email component they use (if any).when you get a reply post it here and i will help you. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 23, 2007 Share Posted January 23, 2007 Windows Server 2003 uses CDO.Message, older versions of Windows use CDONTS.Newmail. You should be able to do a search for either to find examples.As for the 500 error, I bet you are using IE. By default, IE does not display helpful error messages. You can either use a browser like Firefox or Opera to see the actual error message (such as an ASP syntax error), or you can go into the options for IE and find an option called "Show friendly HTTP error messages" and disable it. Friendly != helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now