• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

HTML forms  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
<TITLE>A Sample Form Using GET</TITLE>
<H2 ALIGN="CENTER">A Sample Form Using GET</H2>
<FORM ACTION="mailto:aamir140@hotmail.com" enctype="text/plain">
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 -->
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot create html that will directly send an email.
No can do.
You CAN create a form that is processed by a web server that can then send email. Web servers can send email. HTML, cannot.
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!