Nick
If I change the @allow_mail_to section to read only the domain name (so any
mail address at that domain is allowed) I get this error:
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 or @allow_mail_to.
More information on filling in recipient/allow_mail_to form fields and
variables can be found in the README file.
----------------------------------------------------------------------------
----
The recipient was: [ swbands@... ]
Here is the config for when that error occurrs, and as you can see...I do
have that domain name in the @referers section.
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = '';
@referers = ('www.getagig.co.uk');
@allow_mail_to = qw(getagig.co.uk);
@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;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you@...
Subject: form submission
Thank you for your form submission.
END_OF_CONFIRMATION
However....if I just change the @referers section to read with the qw syntax
instead of '' I get this error (see config section below error.
The form attempting to use FormMail resides at
http://www.getagig.co.uk/SWBandContact.htm, 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 'www.getagig.co.uk' to your @referers array.
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = '';
@referers = qw(www.getagig.co.uk);
@allow_mail_to = qw(getagig.co.uk);
@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;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you@...
Subject: form submission
Thank you for your form submission.
END_OF_CONFIRMATION
So it seems to be whenever I change one section...the syntax makes another
error come up, and that asks me to change another section or use a different
syntax.!!
Any idea's??
Thanks
Tim
-----Original Message-----
From: Nick Cleaton [mailto:nms-cgi-support@...]
Sent: 30 January 2003 07:54
To: Tim
Cc: nms-cgi-support@...
Subject: Re: [Nms-cgi-support] FormMail.pl errors
On Wed, Jan 29, 2003 at 04:21:38AM -0800, Tim wrote:
>
> I'm getting constant errors since your new update to the fommail cgi
> script was released.... I've put up the following scipt...and it looks
> fine...but if I change one thing I get one error, if I change the new
> error, I get back to the last error...in a never ending circle !! Heres
> the script...followed by one of the errors...Can you please tell me
> where I'm going wrong?
What message do you get for the other error ?
What does the config section of the script look like when you have it in
the state that leads to the other error ?
> BEGIN
>
> $DEBUGGING = 1;
> $emulate_matts_code= 0;
> $secure = 1;
> $allow_empty_ref = 1;
> $max_recipients = 5;
> $mailprog = '/usr/lib/sendmail -oi -t';
> $postmaster = '';
> @referers = ('www.getagig.co.uk');
> @allow_mail_to = qw(swbands@...);
> @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;
> $send_confirmation_mail = 0;
> $confirmation_text = <<'END_OF_CONFIRMATION';
> From: you@...
> Subject: form submission
>
> Thank you for your form submission.
>
> END_OF_CONFIRMATION
>
> 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 or @allow_mail_to. More information on filling in
> recipient/allow_mail_to form fields and variables can be found in the
> README file.
>
>
> -----------------------------------------------------------------------
> ---------
>
> The recipient was: [ swbands@... ]
>
>
> --------------------------------------------------------------------------
-
I've tried that exact config (changing only the email address and
referer to match my system) in the latest version, and it worked fine.
Please post the HTML source of the form, in case there's something wrong
there.
--
Nick
|