Click to See Complete Forum and Search --> : Emailing Form Data: HELP!


petrocan
02-24-2003, 01:55 PM
Need help!!!

I don't want to mess around with .ASP/CGI files (if I don't have to).

I just want to send form data/results to a email distribution list. Is this possible? I know its METHOD="POST" ACTION="MAILTO:blah@blah.com", but when I submit it doesn't post anything to the email.

What am I doing wrong/forgeting?

PETRO(going mental)CAN

DaveSW
02-24-2003, 02:52 PM
Can you post a link or paste your code in? It's hard to tell you what you're doing wrong when we don't know what you're doing...

However

<FORM METHOD="POST" ACTION="mailto:sales@williamsons-fire.co.uk" ID="myform">

Form detail here

<INPUT TYPE="SUBMIT" VALUE="Submit Form">

Is the basic code for an email form.

petrocan
02-24-2003, 03:02 PM
HERE IS MY CODE: WHY WILL NOTHING POST TO THE EMAIL?

<html>
<head><title>Changeover Schedule</title></head>

<body bgcolor=white>
<font face=arial color=black>
<FORM action="mailto:____@______" method="post" enctype="text/plain">

<table border=0 width=600 align="center">
<font align=right><h2>Changeover Schedule</h2></font></table>

<table border=1 width=600 align="center">
<font face=arial><b>Changeover Details</b></font></table>
<table border=1 width=600 align="center">
<tr>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Type:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Site Number:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Phone Number:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Fax Number:</td>
</tr>
<tr>
<td width=150 valign="top">
<select size="1" name="Type:" size=16>
<option>RL to RL</option>
<option>RL to PA</option>
<option>PA to RL</option>
</select>
</td>
<td width=150 valign="top"><input type="text" name="Site Number:"></td>
<td width=150 valign="top"><input type="text" name="Phone Number:" size=16></td>
<td width=150 valign="top"><input type="text" name="Fax Number:" size=16></td>
</tr>
</table>
<table border=1 width=600 align="center">
<tr>
<td width=300 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Address:</td>
<td width=250 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Changeover Date:</td>
<td width=50 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Time:</td>
</tr>
<tr>
<td width=300 valign="top"><input type="text" name="Address:" size=41></td>
<td width=250 valign="top">
</td>
<td width=50 valign="top"><input type="text" name="Time:" size=13></td>
</tr></table>
<table border=1 width=600 align="center">
<tr>
<td width=600 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Other Info:</td>
</tr>
<tr>
<td width=600 valign="top"><input type="text" name="Other Info:" size=90></td>
</tr></table>

<table border=0 width=600 align="center">
<tr><td colspan=2 align=center><INPUT type="submit" value="Send"> <INPUT type="reset"></td></tr>

</table>
</FORM>
</font>
</body>
</html>

DaveSW
02-24-2003, 03:14 PM
Try this - it's in my sent items so I presume it sent, though it hasn't arrived yet...



<html>
<head><title>Changeover Schedule</title></head>

<body bgcolor=white>
<font face=arial color=black>
<FORM method="post" action="mailto:_____@______" enctype="text/plain">

<table border=0 width=600 align="center">
<font align=right><h2>Changeover Schedule</h2></font></table>

<table border=1 width=600 align="center">
<font face=arial><b>Changeover Details</b></font></table>
<table border=1 width=600 align="center">
<tr>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Type:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Site Number:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Phone Number:</td>
<td width=150 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Fax Number:</td>
</tr>
<tr>
<td width=150 valign="top">
<select size="1" name="Type:" size=16>
<option>RL to RL</option>
<option>RL to PA</option>
<option>PA to RL</option>
</select>
</td>
<td width=150 valign="top"><input type="text" name="Site Number:"></td>
<td width=150 valign="top"><input type="text" name="Phone Number:" size=16></td>
<td width=150 valign="top"><input type="text" name="Fax Number:" size=16></td>
</tr>
</table>
<table border=1 width=600 align="center">
<tr>
<td width=300 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Address:</td>
<td width=250 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Changeover Date:</td>
<td width=50 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Time:</td>
</tr>
<tr>
<td width=300 valign="top"><input type="text" name="Address:" size=41></td>
<td width=250 valign="top">
</td>
<td width=50 valign="top"><input type="text" name="Time:" size=13></td>
</tr></table>
<table border=1 width=600 align="center">
<tr>
<td width=600 valign="bottom" bgcolor="#CCCC99" class="smalltxt">Other Info:</td>
</tr>
<tr>
<td width=600 valign="top"><input type="text" name="Other Info:" size=90></td>
</tr></table>

<table border=0 width=600 align="center">
<tr><td colspan=2 align=center><INPUT type="submit" value="Submit"> <INPUT type="reset"></td></tr>

</table>
</FORM>
</font>
</body>
</html>

petrocan
02-24-2003, 03:22 PM
I actually had the (method="post") first in the order before changing it (because it didn't work). I appreciate the thought. I'm just wondering if there has to be a script in the html file explaining that the data is to be posted to the email???

Any other thoughts?

petrocan
02-24-2003, 03:24 PM
...sorry, and yes the email launches, but nothing is attached.

petrocan
02-24-2003, 03:32 PM
...if I can't get this to work I guess I will have to create some sort of .ASP file (which I don't know how to do). Does anyone know where I could find a working .ASP file that simply posts the necessary info to a source (I have a server if that helps).

DaveSW
02-24-2003, 03:55 PM
Well I've just had three copies of the form arrive in my inbox using my modification. (actually in the body of the email, not as an attachment) I didn't fill in the form, so I don't know if the details have would have been lost, but I do have

Type:=RL to RL
Site Number:=
Phone Number:=
Fax Number:=
Address:=
Time:=
Other Info:=

Is it your PC thats the prob here?

Dave

petrocan
02-24-2003, 03:58 PM
Damn it...I wonder why its posting something to you and noit through my email. What email rpgram do you use? I'm using MS Outlook...that's a pisser.

DaveSW
02-24-2003, 03:59 PM
Outlook 2000

Is your email account definitely working?

Dave

petrocan
02-24-2003, 04:01 PM
Yes...absolutely fine. I work in a big office and if it wasn't operating correctly we would know. Weird?

DaveSW
02-24-2003, 04:05 PM
Does your mail server in your office use a 'gate'? Some servers only release mail at certain times e.g. six o clock. Failing that, try my version with someone elses email address

dave

DaveSW
02-24-2003, 04:17 PM
Try sending yourself an email. If it does not arrive fairly soon then you know its your server system!

Dave

petrocan
02-25-2003, 08:04 AM
Thanks for your help Dave...I have a feeling the problem lies within some firewall/email thing.

flik623
02-26-2003, 06:16 AM
i have the same problem