Print Page | Close Window

Web email form - not working

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25724
Printed Date: 29 March 2026 at 8:34pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Web email form - not working
Posted By: dream74
Subject: Web email form - not working
Date Posted: 15 May 2008 at 11:48am
Hi,
 
I have the following email form on my html page (see below)
 
I have the cgi script in the correct place but when I click submit I get this error message:
 
Can anyone help / tell me what I am doing wrong?? Thanks
 
 
 
Error: Bad/No Recipient
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients. More information on filling in recipient form fields and variables can be found in the http://www.scriptarchive.com/readme/formmail.html - README file.
http://www.scriptarchive.com/formmail.html - FormMail V1.92 © 1995 - 2002 Matt Wright
A Free Product of
http://www.scriptarchive.com/ - Matt's Script Archive, Inc.
 
 
 
 
 
Form script: (Note address is in place of a real web address I am using.
 
To test the script I have used the correct webaddress but used my own email address to check what comes through...would this effect it??
 
 
 
 
 <h2>Contact Us</h2>
   <form action=" http://www.address.co.uk/form/FormMail.cgi - http://www.address.co.uk/form/FormMail.cgi " method="post">
<div align="right">
  <input type="hidden" name="recipient" value=" mailto:sales@address.com - sales@address.com ">
  <input type="hidden" name="subject" value="This is a test">
  <input type="hidden" name="redirect" value=" http://www.address.co.uk - http://www.address.co.uk ">
</div>
<p align="right">
  <label>Contact Name
  <input name="textfield" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Business Name
  <input name="textfield2" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Business Address
  <input name="textfield3" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>City
  <input name="textfield4" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>County
  <input name="textfield5" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Post Code
  <input name="textfield6" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Telephone Number
  <input name="textfield7" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Mobile Number
  <input name="textfield8" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>Email Address
  <input name="textfield9" type="text" size="30" />
  </label>
</p>
<p align="right">&nbsp;</p>
<p align="right">
  <label>Aproximate number of items you would like to be tested
  <input name="textfield10" type="text" size="30" />
  </label>
</p>
<p align="right">
  <label>When would you like the work to be carried out?
  <input name="textfield11" type="text" size="30" />
  </label>
</p>
<div align="right">
  <p><br/>
   
    <input value="Submit " type="submit">
  </p>
  <p>
      <input value="Clear Form" type=reset>
   
    </p>
</div>
   </form>

        <p>
          <label></label>
        </p>
        <p align="right">
          <label></label>
          <label></label>
        </p>
      </form>



Replies:
Posted By: 123Simples
Date Posted: 15 May 2008 at 12:17pm
I'm not sure if this is any help, but I have been using Bruces brilliant forms package. Its FREE and can be adjusted fairly easily to suit your requirements, and the information on how to use it seems a bit better than the above email package

http://www.webwiz.net/kb/asp_tutorials/email_using_cdonts_tutorial.asp - The download link is here


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: dream74
Date Posted: 15 May 2008 at 12:26pm
Thanks for that link.  I would rather get this going as its easier to work through my isp/web host once I have worked out what bit I need to change!! If it ends up being dificult in that I need to change loads then I may end up using your link - so many thanks :)
 
Anyone know what I need to do?
 
 


Posted By: WebWiz-Bruce
Date Posted: 15 May 2008 at 1:06pm
I wouldn't use this formmail.cgi as you will get issues.

CGI has not been widely used for over a decade and as a result things have moved on since this was written with many web hosts requiring that you use authentication when sending emails through their mail servers.

Also from the point of security a spammer could very easily manipulate this type of CGI script to sendout spam., both remotely relay and to your own inbox, and should be avoided.

You should instead look for something in ASP, or ASP.NET if you use a Windows web server or PHP if using a Linux web server.

Your web host should be able to help futher as they should be able to tell you what type of script/application to use and any SMTP and authentication settings required inorder to send emails from website forms.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net