I am trying to install formmail.php but keep getting this message:
You are trying to send mail to a domain that is not in the allowed recipients list. Please read the manual section titled "Setting Up the PHPFormMail Script".
The php script is chmod at 644 and can't be changed.
Here are the important parts of my form:
<form name="customer" method="post" action="http://www.nurseryplay.co.uk/cgi/formmail.php"
<input type="hidden" value="enquiries@nurseryplay.co.uk" name="recipient">
<input type="hidden" value="http://www.nurseryplay.co.uk" name="redirect">
<input type="hidden" value="mail to Nurseryplay" name="subject">
Here are the important parts of the php script
$referers = array('www.nurseryplay.co.uk');
$valid_env = array('REMOTE_HOST', 'REMOTE_ADDR', 'REMOTE_USER', 'HTTP_USER_AGENT');
// +------------------------------------------------------------------------+
// | STOP EDITING! The only two variables that need to be updated are |
// | $referers and $valid_env |
// +------------------------------------------------------------------------+
$recipients = $referers;
How can I make it work ?