 |

02-20-2006, 03:45 PM
|
 |
Moderator
|
|
Join Date: May 2005
Location: Essex, UK
Posts: 1,460
|
|
My Kingdom for an ASP Form Script
Hi all
I need to find a good ASP script so when a viewer completed my customer's online form, my customer receives the form data in email format and a confirmation email is sent to the viewer's email address saying that their form has been submitted.
The script has to be ASP because of the server (Windows 2003/CDOSYS). And it also must be user-friendly so a pleb like me can understand it.
Please please does anyone know of a ASP script that does all of this for a small cost if any?
Any help will be gratefully received.
Many thanks in advance,
|

02-20-2006, 06:13 PM
|
|
WebProWorld Pro
|
|
Join Date: Sep 2005
Location: Manchester, UK
Posts: 257
|
|
A quick search on hotscripts ( www.hotscripts.com) returned 95 results
http://www.hotscripts.com/ASP/Script...ems/index.html
maybe one of these could accomplish what you want. Alternatively it's not all that difficult to write an asp mailer script, maybe a good time to dig into asp?
Hope this helps
Mike
|

02-21-2006, 05:03 PM
|
|
WebProWorld New Member
|
|
Join Date: Feb 2006
Posts: 1
|
|
Re: My Kingdom for an ASP Form Script
|

02-22-2006, 07:18 PM
|
|
WebProWorld Veteran
|
|
Join Date: Apr 2004
Posts: 307
|
|
This should work, well at least in theory. I took different aspects of the scripts that I commonly use and put them into this one script.
Code:
'''this routine simply sends the email using cdosys
sub SendEmail(sTo,sFrom,SSubject,sTextBody)
Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")
'Set key properties
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objmail.HTMLBody = sTextBody
'Send the email
objMail.Send
'Clean-up mail object
Set objMail = Nothing
end sub
dim Customer_Body, Thank_You_Body, Customer_Email
Customer_Email = "Support@CustomerDomain.com"
For i=1 To request.form.count 'build email that is sent to YOUR customer
Customer_Body = Customer_Body & request.form.key(i) & ": " & request.form.item(i) & "
"
Next
'Content for the thank youemail sent to the sender
Thank_You_Body = "Thank you for your interest in our products and services. Your response has been sent and a customer service representative should be contacting you as soon as possible."
'send email to your customer
SendEmail Customer_Email,request.form("email"),"CustomerDomain.com: Contact Request",Customer_Body
'send Thank you email
SendEmail request.form("email"),Customer_Email,"CustomerDomain.com: Thank You",Thank_You_Body
response.redirect("Contact_us.asp?Action=Message Sent")
|

02-22-2006, 07:21 PM
|
|
WebProWorld New Member
|
|
Join Date: Jan 2004
Location: Melbourne, Australia
Posts: 19
|
|
Hi,
I have used an online form builder from www.mycontactform.com which I've put into asp pages. It has a nice wizard system which you simply cut and paste the html when you're done.
It's free to join so might be worth a look.
Hope this helps,
Chris
(see an example of a form in action here: http://www.nmclub.com.au/pages/Accom...mmodation.aspx)
__________________
Sleep better with the hibermate, the world's most comfortable sleep mask!
sleep mask
|

02-23-2006, 05:17 AM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Jul 2003
Location: UK
Posts: 2,803
|
|
ASP form mail script
There's a well-documented example of an ASP form-mail script at the BrainJar site (this resource is also referenced in my "Programming Resources" sticky).
The usual routine for such a script would be for the visitor details to be collected by the form, emailed to the site owner, and the visitor would either receive confirmation on the same "form" page that an email had been sent, or alternatively, they could be redirected to a separate confirmation page. So there's no need to add an additional email to the visitor.
|

02-23-2006, 05:51 AM
|
 |
Moderator
|
|
Join Date: May 2005
Location: Essex, UK
Posts: 1,460
|
|
I hear what you're saying Paul, but the customer has requested both confirmtion mail and thank you page.
Basically, as it involves registering as a candidate online, they need an acknowledgement sent so that their candidate a) Has something they can keep to remind them that they have already registered (especially for someone registering to more than one website) and b) a simple system that the email address they've given is a genuine one and not someone faffing about.
Thanks for all your advice. There is some pretty good resources given in this thread.
atb
|

02-23-2006, 12:43 PM
|
|
WebProWorld Pro
|
|
Join Date: Jan 2006
Location: Maryland, USA
Posts: 106
|
|
Close but maybe no cigar?
Okay, so I may be off here because you're in an ASP environment, but I use http://www.form-maker.com/. It is a PHP/MySQL environment, but it's great for for mangement, response emails, and even a confirmation page.
But I think you won't be able to tie this to your current environment. If you can run PHP and MySQL on their site, it's a great program.
I currently use it on 4 of our domains. You can see the form in action at www.promarktech.com if you'd like to see how we use it. Mainly for lead generation.
__________________
Web Design, Search Engine Marketing, Search Engine Optimization are our tools. Building business for our customers is our mission, if we are willing to accept it.
|

02-23-2006, 12:51 PM
|
 |
Moderator
|
|
Join Date: May 2005
Location: Essex, UK
Posts: 1,460
|
|
Hi Promarkweb
I cant run MySQL. Its MSSQL or Access. I had to opt for Windows server on this 1 occasion (tho I do usually use Linux/MySQL) because of the search database
Thanx anyway :)
|

02-23-2006, 04:09 PM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
|
|
Hey Debbie,
If you want a thank you page, I can give you the ASP code for that in one line. Yep. One measly, stinkin' line.
Code:
Response.Redirect "http://www.your-site.com/thank_you_page.asp"
Put that after you send your email, and replace the page with your own thank you page. Easy, right?
The one thing you need to watch out for, as with ASP in general...make sure you set all objects to nothing BEFORE you process that redirect line. Otherwise, they will take up memory for an unspecified length of time.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|