Weird error message
I was asked to do a few changes to a web site. Their email had changed and they wanted all of the relevant pages to reflect that.
They have two forms on their site and I made the forms go to the new email. The forms both seem to call a form_submit.php file. Apparently, after I changed the email the form no longer worked. This error is popping up--
You are trying to send mail to a domain that is not in the allowed recipients list.
Can someone tell me what that means? I know nothing about PHP. Thanks!
teammatt3 posted this at 22:36 — 9th May 2007.
He has: 2,102 posts
Joined: Sep 2003
In form_submit.php find something like
$referers = array('www.example.com', 'example.org');
$emails = array("[email protected]","[email protected]");
and modify them so they match your site(s) and email(s). I assumed you were using a script from form phpformmail.
dthatsme posted this at 15:12 — 10th May 2007.
She has: 25 posts
Joined: Sep 2004
That did the trick. Thanks for your help!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.