I set up everything for my form used NMS Formail script followed the instructions here is what i put:
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '';
@referers = qw(moversonthemovela.com localhost);
@allow_mail_to = qw(
gsr0328@aol.com localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From:
rick@moversonthemovela.comSubject: form submission
When i hit submit the form which is located on
http://www.moversonthemovela.com i get this error code:
Bad Referrer - Access Denied
The form attempting to use this script resides at
http://moversonthemovela.com/, which is not allowed to access this program.
If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.
Add 'moversonthemovela.com' to your @referers array.
FormMail © 2001-2003 London Perl Monger