Forum Moderators: mack

Message Too Old, No Replies

Form to email

         

philcragg

8:09 pm on Sep 16, 2003 (gmt 0)

10+ Year Member



Hi, I`m trying to send information from a simple form to my email address but cannot seem to make it happen. I have this line in the top of the form :
<form action="mailto:me@me.com" method="post" enctype="text/plain">

My form comes up but when sumbit is pressed, I get a warning of email sending (which is maybe correct) and then outlook express opens in compose mode.
Am I doing something wrong?
Here is the whole script if it helps...

<form action="mailto:me@me.com" method="post" enctype="text/plain">
<table width="80%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="35%">
<div align="right"><b>Name:</b></div>
</td>
<td width="65%">
<input type="text" name="name" size="15">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Email:</b></div>
</td>
<td width="65%">
<input type="text" name="email" size="20">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Comment:</b></div>
</td>
<td width="65%">
<textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
</table>
</form>

Should this work without outlook opening?

Or does anybody have a script I could use, I only really want to send 1 line of text!
Thanks in advance!

RonPK

9:07 pm on Sep 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Phil, try using method="get" and not "post".

Also, keep in mind that there are lots of mail clients out there that won't do all you want. You'd better use a server side mailscript.

davegerard

6:06 am on Sep 25, 2003 (gmt 0)

10+ Year Member



Try AspEmail from Persits.com. Works good for this.