• 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 ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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..
<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:aamir140@hotmail.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
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!