View Full Version : Formmail doesn't work for me...
Cherry
11-10-2006, 07:10 AM
Formmail wasn't working due to server problem...
Anyway.THANKS guys!!!
jscheuer1
11-10-2006, 09:37 AM
This:
file:///C|/Documents and Settings/Rew/My Documents/cgi-bin/formmail.cgi
tells me that you are trying to run this on your local computer. However, formail is a server package that you not only need to install on your computer, your computer has to be a server as well and be one configurable and configured to run formail. If you really have a server and are trying to set it up to use formail, try hanging out in a formail forum. You will get much better help there.
It doesn't have to be so complicated. Unless your local machine is a server and you do want to set it up with formail, you shouldn't even be trying to run this 'at home'. Find a host that supports formail and use the preconfigured formail on their system according to the instructions for its use that they should have available. Or, forget about formail altogether - if all you want is a web-based email client for your users, there are also third party mail services you can use, some of these are 'free' (ad supported). Google 'third party mail forms'.
ddadmin
11-10-2006, 12:43 PM
Just to add to John's suggestions, you can always try out different cgi form mailing scripts to see which one you can get to work. Here's a good list: http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Form_Processing/
p.s: Please post in the correct forum. This has nothing to do with DD scripts. Moving to "Other" forum.
johnwboyd
02-20-2008, 06:40 PM
My tips from what I've learned:
1) Use FileZilla as it's a stellar free FTP app. I did have issues with a later version and went back to 2.2.23 at www.oldapps.com and it worked great.
2) Be sure your webhost allows for cgi scripts.
3) Code your form like this:
<form name="formmail" action="http://yourwebhost.com/cgi-bin/formmail.cgi" method="post">
<input type="hidden" name="recipient" value="youremail@yourwebhost.com"><input type=hidden name="subject" value="Your Email Subject">
<input type=hidden name="redirect" value="http://yourwebhost.com/confirmation_page.htm">
<input type=hidden name="required" value="Name,email,radio,City,State,Address,Company,Phone">
and submit link: <input type=SUBMIT value="Submit">
IMPORTANT: Be sure that your field name matches your required values above. These are case sensitive.
For example:
<input type="text" name="Name" size="24" border="0">
NOT name="name"
4) Open the formail.cgi and search for: @referers =
Enter your webhost: @referers = ('yourhost.com');
Type in: These fields must be filled in
And change the font to verdana size 2, also add a back link (makes the missing fields page look a lot better):
***Paste After: <tr><th>
<font face="verdana" size="2">Error: Blank Fields</font></th></tr>
</table>
<table border=0 cellpadding="8" bgcolor=#ffffff>
<tr><td><font face="verdana" size="2">The following fields were left blank in your submission form:</font><p>
<ul><b><font face="verdana" size="2" color="#006699">
$missing_field_list
</ul></b></font><br>
<font face="verdana" size="2"> These fields must be filled in before you can successfully submit the form.<p>
<b><a href="javascript:history.go(-1)">Go Back</a></b>
***Before <hr size=1>
5) Save the .cgi in a folder cgi-bin in your main webhost directory: /
6) Right click the file and scroll down to: File Attributes and type in 755.
I think that's it : )
johnwboyd
02-20-2008, 06:43 PM
ddadmin,
Do you know how to send a copy of the web form to the one submitting it? Thanks.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.