Click to See Complete Forum and Search --> : Is it Possible - E-mailing a form


clyde
07-16-2003, 08:24 AM
Please help if you can.

Is it possible to e-mail a html form.

Thanks

Clyde

pyro
07-16-2003, 08:28 AM
You have two options. One is to use the mailto: protocol in the forms action, like this:

<form action="mailto:you@your.com" method="post" enctype="text/plain">

The other (and far better, as it does not rely on the user having a mail program installed) is to use some sort of server side language such as PHP, CGI/Perl, ASP, etc... If your server supports PHP, look at http://forums.webdeveloper.com/showthread.php?s=&threadid=9543#post48748

abectech
07-16-2003, 10:52 AM
There are a lot of great free for use already made php email form programs that are very simple it use and only require HTML knowledge assuming your host supports PHP. They let make your HTML form mailable with now PHP knowledge!. If you email me at ryan@abectech.com i can suggest some good sources for these forms mailers.

clyde
07-16-2003, 12:18 PM
<html>
Pyro

I appreciate your answer, thanks, I tried to implement with limited success ( these two words should never be said together - limited success).

getting serious again by using the html below, i can send the email the only thing i get are the submit buttons attributes
label and name

Example: sbmbut1=E-mail form

I was thinkin I should reeive the text and not the submit button attributes.

What did I do or not do.

Thanks
**************************************************

<head>
<title>TEST REPLY</title>
</head>
<body>
<FORM action="mailto:xxx@xx-xxxxxx.com" method="post" enctype="text/plain">
<BR>
THIS IS THE FORM TO E-MAIL TEST
<BR>
<INPUT size="20" type="text">
<BR>
<INPUT type="submit" name="sbmbut1" value="E-mail Form">

</FORM>

</body>
</html>

Compguy Pete
07-16-2003, 01:59 PM
So are you not getting what is typed in the text field?

try this below

<FORM action="mailto:xxx@xx-xxxxxx.com" method="post" enctype="text/plain">
<BR>
THIS IS THE FORM TO E-MAIL TEST
<BR>
<INPUT name="name" type="text" id="name" size="20">
<BR>
<input type="submit" name="Submit" value="E-mail Form">
</FORM>


You are more than likely going to still get info on the submit button but that's ok.

clyde
07-16-2003, 03:02 PM
It I workink better.

Should the text within the form be emailed too.

When I do it is does not.

Clyde

Compguy Pete
07-16-2003, 03:09 PM
Here is what I get....

Subject: Form posted from Microsoft Internet Explorer.

Email body:

name=acasdf
Submit=E-mail Form


I should note I'm using Outlook. Also it would be much better if you were using a CGI script or something of that nature to send your request. Depending on them to have a funtioning email program may cause you a number of problems if the user only uses an online based email account such as Hotmail or yahoo.

example of a CGI based form. Fill it out and I'll forward it back to you so you can see what happens.

http://compguysinc.com/contact.html

clyde
07-16-2003, 03:24 PM
I get The same results.

What you are telling me with this quick and dirty method the text, images and variables do not get e-mailed.

Am I correct in assuming that.

Thanks
Clyde

Compguy Pete
07-16-2003, 08:53 PM
I think that is correct... THe output is just what I have posted above! It doesn't send a copy of the page with the options they have chosen. Just the output of the form, which is why it's SO important to properly list/label your input boxes and buttons.

clyde
07-17-2003, 08:07 AM
Thank you to all who responded.

I appreciate it.

clyde