473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

FormMail.pl error

I keep getting the error "Error: Bad/No Recipient" when submitting a form
using formmail.pl

Here is the part of the formmail.pl that you are supposed to alter to suit
your needs using fake url and ip addresses:

#!/usr/bin/perl
################################################## ##########################
##
# FormMail Version 1.92
#
# Copyright 1995-2002 Matt Wright ma***@scriptarchive.com
#
# Created 06/09/95 Last Modified 04/21/02
#
# Matt's Script Archive, Inc.: http://www.scriptarchive.com/
#
################################################## ##########################
##
# COPYRIGHT NOTICE
#
# Copyright 1995-2002 Matthew M. Wright All Rights Reserved.
#
#
#
# FormMail may be used and modified free of charge by anyone so long as this
#
# copyright notice and the comments above remain intact. By using this
#
# code you agree to indemnify Matthew M. Wright from any liability that
#
# might arise from its use.
#
#
#
# Selling the code for this program without prior written consent is
#
# expressly forbidden. In other words, please ask first before you try and
#
# make money off of my program.
#
#
#
# Obtain permission before redistributing this software over the Internet or
#
# in any other medium. In all cases copyright and header must remain intact.
#
################################################## ##########################
##
# ACCESS CONTROL FIX: Peter D. Thompson Yezek
#
# http://www.securityfocus.com/archive/1/62033
#
################################################## ##########################
##
# Define Variables
#
# Detailed Information Found In README File.
#

# $mailprog defines the location of your sendmail program on your unix
#
# system. The flags -i and -t should be passed to sendmail in order to
#
# have it ignore single dots on a line and to read message for recipients
#

$mailprog = '/usr/lib/sendmail -i -t';

# @referers allows forms to be located only on servers which are defined
#
# in this field. This security fix from the last version which allowed
#
# anyone on any server to use your FormMail script on their web site.
#

@referers = ('www.test.com','555.555.555.555);

# @recipients defines the e-mail addresses or domain names that e-mail can
#
# be sent to. This must be filled in correctly to prevent SPAM and allow
#
# valid addresses to receive e-mail. Read the documentation to find out how
#
# this variable works!!! It is EXTREMELY IMPORTANT.
#

@recipients = &fill_recipients(@referers);

# ACCESS CONTROL FIX: Peter D. Thompson Yezek
#
# @valid_ENV allows the sysadmin to define what environment variables can
#
# be reported via the env_report directive. This was implemented to fix
#
# the problem reported at http://www.securityfocus.com/bid/1187
#

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');

# Done
#
################################################## ##########################
##
Here is the associated HTML code using fake recipient and form action info:

<form name="TEST" method="post"
action="http://www.test.com/cgi-bin/FormMail.pl">

Rest of form fields are here....

<input type="hidden" name="recipient" value="me@test.com">
<input type="hidden" name="subject" value="TEST">
<input type="hidden" name="redirect" value="thank_you.htm">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">

Does anyone have any clues why this does not work?

Craig
Jul 19 '05 #1
0 2443

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mcp6453 | last post by:
I am trying to use Jack's FormMail script (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP and not very good at HTML, I have an easy question, which I will narrow down. When...
4
by: Hmmm... | last post by:
I am setting up a web site for a friend. Her hosting service does not support Sendmail. It is an NT server. They recommend I use Smtp. I have been using something like formmail.pl when I have...
0
by: Olen R. Pearson | last post by:
Hi, I am using FormMail.CGI v. 1.92 (04/21/02) to process s form on a Website. Though I am not familiar with Perl, I have used this script and its earlier versions for several years without...
0
by: Aidan | last post by:
Hi PHP guru's, I've been working on creating a PHP formmail script. I have a working version, but I'd like to get feed back on what security holes I may have opened, and what I could do better....
2
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. ...
4
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script formmail.php (version 4.1b). Wondered if anyone had experienced the same problem I'm having. I'm submitting a form to formmail.php, but...
3
by: Geoff Cox | last post by:
Hello, I am using the formmail.cgi script and wonder if it is possible to have the user enter their email address and then have the results sent to this address by formmail.cgi? If yes, how...
1
by: ekburrow | last post by:
I've been using Form mailer for a couple years but now have a huge issue with SPAMMERS... Here is my Formmail code it is located at the top of the PHP file <form method="post"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.