Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

customer data to email address

Status
Not open for further replies.

clivey

IS-IT--Management
Aug 14, 2001
1
GB
Help!
I'm trying to set up a form that when filled in will be sent to my email address. I have never used cgi but have a lot of exp. with dreamweaver2. Is there anyway I can use javascript to email the data????????????
 
Set the form action to mailto:youremailaddress similar to:
<FORM name=&quot;myform&quot; action=&quot;mailto:youraddress@yourcompany.com&quot;>

This will send a .dat file with the posted information to your email address.

This may not be exactly the functionality you are looking for though. I would suggest using Active server pages (ASP) and post the data to a separate page which reads the post data, formats it into an email, and sends it to you via CDONTS (Collaborative Data Objects for NT Server, a built in server object [program] in Win2K that sends email). Your site would have to be hosted on a Windows/IIS server for this to work. This coding in ASP can be done in Dreamweaver UltraDev 4 fairly easily without touching much code.

 
Hi, Why not try formmail - all you do is set the form up with (for example) :-
<form name=&quot;form1&quot; method=&quot;POST&quot; action=&quot;formmail.pl&quot;>
<input type=hidden name=&quot;recipient&quot; value=&quot;info@you.com&quot;>
<input type=hidden name=&quot;subject&quot; value=&quot; whatever&quot;>
<input type=hidden name=&quot;required&quot; value=&quot;realname,email,comments&quot;>
<table width=&quot;97%&quot; border=&quot;0&quot; cellpadding=&quot;5&quot;>
... input fields go here

It's very easy to use as long as you can run cgi or perl on the server.

Hope this helps

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top