jjb488 Posted September 11, 2003 Posted September 11, 2003 I'm not sure what's wrong with my script, posted here. Here is what is at the top of my config.php file: $allowed_email_recipients_array = array('paragonsuites.com','www.paragonsuites.com', 'john@paragonsuites.com'); $referers = array('66.11.164.208', 'paragonsuites.com','www.paragonsuites.com'); /*66.11.164.208 is IP for TCH... helps new sites work Should not be required after propogation But doesn't hurt*/ $recipient = "john@paragonsuites.com"; Can I place the config.php, mailit.php files in the same folder? Do they need to be in different folders? Also, I'm on a Mac, does that make any difference? Sorry, I'm very new to php - the webhost I have to post this site on won't accept good ol' Formmail so I am trying to find an easy alternative. I keep getting the "invalid recipient" message after I test the form that others seem to be getting. I am uploading the files using an ftp client. I have trashed the cache several times in both browsers I've tested it on. Same results. Any way you could help? I would really appreciate it. James Quote
TCH-Andy Posted September 11, 2003 Posted September 11, 2003 Hi James Welcome to the Family Can I place the config.php, mailit.php files in the same folder? Do they need to be in different folders?As long as you provide the correct links to them, the files can be anywhere. From a security and organisational viewpoint I prefer not to have them in the same directory as my main html code. I'm on a Mac, does that make any difference?No, that doesn't make any difference, as long as you are uploading them correctly to the server. I keep getting the "invalid recipient" messageI would check the files to make sure that none have been chopped, either in your editing, or by the FTP upload. I would guess this is the most likely cause of the error. If you can't find any errors, then post again, and we'll take a look at the code. Andy Quote
jjb488 Posted September 13, 2003 Author Posted September 13, 2003 andy, Thanks for your help. The form is still not working properly, but now at least its redirecting to the confirmation page. I noticed you were online and was wondering if you had any more advice on this. The receiver is still not getting anything in their email, and I am not getting any reply messages since I set the config.php to send a reply message. Here is the url: http://www.paragonsuites.com/paragon_reservations.html Let me know if you see anything else I might try. Jared Quote
TCH-Andy Posted September 13, 2003 Posted September 13, 2003 Jared, I need to look at the source code to take this much further. Can you PM or IM me? Andy Quote
surefire Posted September 14, 2003 Posted September 14, 2003 In the very near future, I will be updating the help documents that go with this script. I secong Jimuni's thoughts that you might be using cpanel to ftp the script and edit it or you're using another tool that cuts the code at inappropriate places. Try using a third party ftp client and starting over with a fresh copy of the code. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.