Hi all , I want to create an HTML form which can send the results to an email.But when I try to click the submit button an email dialog box opens...I want that it sends the information directly instead of opening the dialog box...any help.. <HTML> <HEAD> <TITLE>A Sample Form Using GET</TITLE> </HEAD> <BODY BGCOLOR="#FDF5E6"> <H2 ALIGN="CENTER">A Sample Form Using GET</H2> <FORM ACTION="mailto:email@example.com" enctype="text/plain"> <CENTER> First name: <INPUT TYPE="TEXT" NAME="firstName" VALUE=" "><BR> Last name: <INPUT TYPE="TEXT" NAME="lastName" VALUE=" "><P> <INPUT TYPE="SUBMIT"> <!-- Press this button to submit form --> </CENTER> </FORM> </BODY> </HTML> Wali
If you have an action of a form as a mailto: it will open up your email client in most browsers. I believe some macs won't, but the majority of people don't use macs. What you need to do is have your form call a page or cgi script that sends out the mail. This will depend on what your web server supports, but look into JMail, a very easy mail application that has SMTP wrapped up into it. ASPMail is not bad either if you are using ASP. But like the person before stated, you need to have the server send out the mail, and not the browser.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database