Click to See Complete Forum and Search --> : mail form problems
minnow
10-14-2008, 06:15 AM
Hi,
I am having problems getting this mail form to work. Does anyone have any ideas how to fix it?
Here is the script on the page:
<form id="form" action="" enctype="multipart/form-data">
<table>
<tr>
<td class="td_1">
<div><input type="text" value=" name" onfocus="this.value=''" /></div>
<div><input type="text" value=" e-mail" onfocus="this.value=''" /></div>
<div><input type="text" value=" phone" onfocus="this.value=''" /></div>
<div><input type="text" value=" address" onfocus="this.value=''" /></div></td>
<td class="td_2"><div><textarea cols="30" rows="40" onfocus="this.value=''"> message</textarea></div>
<div class="tar"><a href="#" onclick="getElementById('form').reset()"><img src="images/clear_new.jpg" alt="Clear" width="47" height="16" /></a><img src="images/spacer.gif" width="18" height="1" alt="" /><a href="#" onclick="getElementById('form').submit()"><img src="images/send_new.jpg" alt="Send" width="46" height="16" /></a></div></td>
</tr>
</table>
</form></td>
and my form mail is called iopost.pl and is in the cgi bin.
Thanks!
:confused:
kelly23
10-14-2008, 07:00 AM
You need to enter the path to iopost.pl in the form tag.
minnow
10-14-2008, 07:15 AM
sorry to be dim, but where do I need to type iopost.pl? where is the form tag?
thanks!:o
ryanbutler
10-14-2008, 09:48 AM
<form action="path_to_cgi_bin/iopost.pl">
minnow
10-20-2008, 03:09 AM
Kelly and Ryan, thanks for your replies :)
Emails are now coming through. Only problem is, none of the data ie name, address, message is attached to the email. When you click on submit, a page shows giving info on what you have submitted, nothing shows there either. Also, I could do with knowing how to change the subject title too.
Any ideas? Attached is the iopost.pl file content saved as a .txt file.
Thanks for your help.
kelly23
10-20-2008, 04:01 AM
None of your fields have "names". They should look like this:
<input type="text" name="name" onfocus="this.value=''" />
<input type="text" name="email" onfocus="this.value=''" />
. . . instead of what you have, which is this . . .
<input type="text" value=" name" onfocus="this.value=''" />
<input type="text" value=" e-mail" onfocus="this.value=''" />
As for the subject:
<input type="hidden" name="subject" value="Subject Goes Here">
Kelly
minnow
10-27-2008, 05:52 AM
just when I thought it was all working ok, I am having problems with setting up an auto-reply to the messages that come in from this form. If I send a "normal" email to the address that auto-replies, everything is fine. If I send a message using the form mail, it doesn't work. Someone suggested there may be something wrong with the return path on the form-mail and it does look like the the return-path actually sends to the "to" address:
Return-Path: <myaddress@mydomain.com>
received: from cyrus3.iomartmail.com ([unix socket]) by cyrus3.iomartmail.com (Cyrus v2.2.12) with LMTPA; Sun, 26 Oct 2008 10:05:30 +0000
received: from mta4.iomartmail.com (mta4.iomartmail.com [10.12.10.205]) by cyrus3.iomartmail.com (8.12.11.20060308/8.12.8) with ESMTP id m9QA5ToI012826 for <myaddress@mydomain.com>; Sun, 26 Oct 2008 10:05:29 GMT
received: from mta4.iomartmail.com (localhost.localdomain [127.0.0.1]) by mta4.iomartmail.com (8.12.11.20060308/8.12.11) with ESMTP id m9QA5Qke009995 for <myaddress@mydomain.com>; Sun, 26 Oct 2008 10:05:26 GMT
received: from glamailrelay.iomart.com (glamailrelay.iomart.com [62.233.120.35]) by mta4.iomartmail.com (8.12.11.20060308/8.12.11) with ESMTP id m9QA5MlB009691 for <myaddress@mydomain.com>; Sun, 26 Oct 2008 10:05:22 GMT
received: from web02.iomart.com (ex02.easyxchange.co.uk [62.233.64.253]) by glamailrelay.iomart.com (Postfix) with ESMTP id CBFAC2A400B for <myaddress@mydomain.com>; Sun, 26 Oct 2008 10:05:18 +0000 (GMT)
received: from www.mydomain.com ([127.0.0.1]) by web02.iomart.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 26 Oct 2008 10:03:43 +0000
received: from [212.183.134.130] by www.mydomain.com (NMS FormMail 3.14c1) with HTTP; Sun, Oct 2008 10:03:43 GMT (script-name /cgi-bin/formmail/iopost2.pl) (http-host www.mydomain.com) (http-referer http://www.mydomain.com/index-6.html)
X-Sieve: CMU Sieve 2.2
X-Mailer: NMS FormMail 3.14c1
To: myaddress@mydomain.com
From: sendersaddress@sendersdomain.com
Subject: formmail
Message-Id: <WEB02mRXf2LTrpwACkW00000410@web02.iomart.com>
X-Originalarrivaltime: 26 Oct 2008 10:03:43.0739 (UTC) FILETIME=[2101ECB0:01C93752]
Date: 26 Oct 2008 10:03:43 +0000
X-Iomart-Mailscanner-Information: Please contact support@iomart.com for more information
X-Iomart-Mailscanner: Found to be clean
X-Iomart-Mailscanner-Spamcheck: not spam, SpamAssassin (not cached, score=-3.438, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60, NO_REAL_NAME 0.96)
X-Iomart-Mailscanner-From: myaddress@mydomain.com
X-Spam-Status: No
Does anyone know what needs to be changed and where?
Thanks again:o
minnow
minnow
11-06-2008, 03:45 AM
Hi guys, am still here still having problems.
Greatful for any help here.
thanks
minnow