iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2006, 03:45 PM
dharrison's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Essex, UK
Posts: 1,288
dharrison RepRank 4dharrison RepRank 4dharrison RepRank 4
Default 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,
__________________
Deb Harrison
DVH Design
Essex Web Design
Reply With Quote
  #2 (permalink)  
Old 02-20-2006, 06:13 PM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

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
Reply With Quote
  #3 (permalink)  
Old 02-21-2006, 05:03 PM
WebProWorld New Member
 
Join Date: Feb 2006
Posts: 1
hesser1969 RepRank 0
Default Re: My Kingdom for an ASP Form Script

I use Jmail: http://tech.dimac.net/default2.asp?M...Mail/start.htm

It is simple to use.
Reply With Quote
  #4 (permalink)  
Old 02-22-2006, 07:18 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default

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")
Reply With Quote
  #5 (permalink)  
Old 02-22-2006, 07:21 PM
WebProWorld New Member
 
Join Date: Jan 2004
Location: Melbourne, Australia
Posts: 20
Christof RepRank 0
Default

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
Reply With Quote
  #6 (permalink)  
Old 02-23-2006, 05:17 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default 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.
Reply With Quote
  #7 (permalink)  
Old 02-23-2006, 05:51 AM
dharrison's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Essex, UK
Posts: 1,288
dharrison RepRank 4dharrison RepRank 4dharrison RepRank 4
Default

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
__________________
Deb Harrison
DVH Design
Essex Web Design
Reply With Quote
  #8 (permalink)  
Old 02-23-2006, 12:43 PM
WebProWorld Pro
 
Join Date: Jan 2006
Location: Maryland, USA
Posts: 107
promarkweb RepRank 0
Default 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.
Reply With Quote
  #9 (permalink)  
Old 02-23-2006, 12:51 PM
dharrison's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Essex, UK
Posts: 1,288
dharrison RepRank 4dharrison RepRank 4dharrison RepRank 4
Default

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 :)
__________________
Deb Harrison
DVH Design
Essex Web Design
Reply With Quote
  #10 (permalink)  
Old 02-23-2006, 04:09 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 0
Default

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.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:35 AM.



Search Engine Optimization by vBSEO 3.3.0