Jump to content

Recommended Posts

Posted

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

Posted

Hi James

 

:) Welcome to the Family :dance:

 

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" message
I 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

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...