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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I send a mail with submit button?

Status
Not open for further replies.
Jul 12, 2001
33
US
Hi,

I would like to make a simple html page and have a text area at the bottom. I would like to have users be able to input data in the text area and the data be sent to my email address when they click on the submit button. Can someone tell me what the code for that would be like??
Thanks
 
You could try this, the person viewing the page will send email with his or hers default email programm.

<FORM METHOD = POST
ENCTYPE = &quot;text/plain&quot;
ACTION =
&quot;mailto:Fake@Nowhere.org?subject=Comments from home&quot;>

<Input name = &quot;Comment&quot;>
<Input type = submit value = &quot;Send Comment&quot;>
</FORM>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top