|
|||||||
| ASP Discussion and technical support for using and deploying Active Server Pages. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Submit form via email
Hellow I'm an absolute novice in terms of ASP. The only thing I know about it is that it might help me to activate a form I've designed so that the info in the form is sent to me via an email.
The form lives here - http://www.jetsupport.com.au/origina.../bookings.html A guy who worked on a previous version of the site put together the code below. Does anyone know (a) if it will work and (b) how I can attach the code to the "submit" button, if indeed this is what I need to do to get the whole show on the road. <% For Each x In Request.Form message = message & x & ": " & Request.Form(x) & CHR(10) Next set smtp=Server.CreateObject("Bamboo.SMTP") smtp.Server="smtp.iprimus.com.au" smtp.Rcpt="info@originalbackpackers.com.au" smtp.From="Email" smtp.FromName="FirstName" & "LastName" smtp.Subject="Response to my form" smtp.Message = message on error resume next smtp.Send if err then response.Write err.Description else Response.redirect ("http:// redirect.com") end if set smtp = Nothing %> Kissies
__________________
Geek_grrrl |
|
#2
|
|||
|
|||
|
Dazed, lost and confused
Um, yup I guess so. To tell you the truth I'm totally lost as I don't even know how to get the code (from either post above) working in synch with the "Submit" button on the page containing my form http://www.jetsupport.com.au/origina.../bookings.html
If anyone can point me in the right direction I'd be mighty appreciative. Cheers
__________________
Geek_grrrl |
|
#3
|
|||
|
|||
|
No, they haven't told me anytying. What I've got so far is this crazy code (see my initial post) from some guy (now MIA) who knows the owners of the business I'm building the site for.
Since I know nada about making forms work, and the ISP for the site is being less than helpful, my plan was to try and get some kind soul to help me attach the crazy code I have to the submit button on my form (http://www.jetsupport.com.au/origina.../bookings.html). I'm not really sure where to go from here?!?! Perhaps I should ditch the code the mystery guy wrote and start again? If so, a pointer in terms of a CGI script that might work would be a beautiful thing. For some reason I have it in my heas that a CGI script will be easier to implement. Am I just deluded?? Any ideas would be much appreciated. Kissies
__________________
Geek_grrrl |
|
#4
|
|||
|
|||
|
#5
|
|||
|
|||
|
#6
|
|||
|
|||
|
Why not CDONTS?
Hello
Wouldn't you be better off using CDONTS, perhaps with some JavaScript to validate the user's e.mail address? laTortuga |
|
#7
|
|||
|
|||
|
Dave ur avatar kicks ass...
|
|
#8
|
||||
|
||||
|
hi,
Quote:
Code:
set Mail = Server.CreateObject("Persits.MailSender")
__________________
---------------------------------- ASP.NET, VB.NET, B2B Applications, .NET Framework, T-SQL, Windows 2003 Server, SQL Server, AJAX, ASP, SEO, CSS, Mobile Technologies, Bluetooth, Wi-Fi. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|