PHP Form Mail on Earthlink Host

3 replies
Joined: 02/28/2007
User offline. Last seen 1 year 44 weeks ago.

Hi,

I've been searching the boards looking for answers, but I'm running low on time and patience.

I've configured PHPFM and installed it on a clients web server, but I keep getting a 500 internal server error. I tried moving it to another directory called scripts, but then I get an error saying the Method POST can't be executed.

The form is here: www.myrnas.com/html/contactform.html

Maybe someone could have a look and let me know what I've done wrong. Or, if it's not me, then what I have to do to fix it.

I'd appreciate any help.
Thanks

joeswhitecat@hotmail.com

here is part of the script ------------------------

// To change the address the e-mail comes from use define('FROM', 'Example Name ');
define('FROM', 'myrnasbistro@aol.com');

$referers = array('www.myrnas.com', 'myrnas.com', 'www.aol.com', 'aol.com'/*, 'www.silverstreetproductions.tv', 'silverstreetproductions.tv','www.earthlink.net','earthlink.net'*/);

// $recipient_array format is $recipient_array = array('sometext'=>'email@example.com','asdf'=>'email2@example.com');
$recipient_array = array('myrna'=>'myrnasbistro@aol.com' , 'web_master'=>'info@silverstreetproductions.tv');

$valid_env = array('REMOTE_HOST', 'REMOTE_ADDR', 'REMOTE_USER', 'HTTP_USER_AGENT');

// +------------------------------------------------------------------------+
// | STOP EDITING! The only two required variables that need to be updated |
// | are $referers and $valid_env |
// +------------------------------------------------------------------------+

$errors = $fieldname_lookup = array('realname','email','phone','fax','comment','address1','address2','city','state','zipcode','country','select_type','select_mail');

$invis_array = array('recipient','subject','required','redirect','print_blank_fields','env_report','sort','missing_fields_redirect',
'title','bgcolor','text_color','link_color','alink_color','vlink_color','background','subject','link','css',
'return_link_title','return_link_url','recipient_cc','recipient_bcc','priority','redirect_values','hidden',
'alias','mail_newline', 'gmt_offset', 'alias_method','subject_prefix');

---------------------------------------------------- end

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 02/28/2007
User offline. Last seen 1 year 44 weeks ago.

Just in case anyone ever looks at this, the resolution was to changed the name of the form from formmail.php to formmail.php5.
Once I did that, I recieved errors that i could troubleshoot.
I fixed a few lines I had modfied incorrectly, and now all is well.
That's it.
peace.[/b]

Joined: 05/25/2005
User offline. Last seen 32 weeks 5 days ago.

The form did indeed pass on PHP4 on the old system.
Just did not go to a thank you page.
If you left the missing redirect off it would tell you what was wrong.
But if you put in a custom error page it would not pass either.
Both the thank you and the error would go to a white page.
So once the client signed up for better service with earlthink or hell they may have even switched host companies... it worked with PHP5 extension.
no problems whatsoever.
Just modded the extension from: php to php4, then to php5 and of course the php5 extension worked!

Weird... because my server will work with a regular php extension.
oh well, we got paid and the job is done.

Thanks Boaddrink!!!

Lorenzo 816

'God saves but Buddha makes incremental backups'

Joined: 05/25/2005
User offline. Last seen 32 weeks 5 days ago.

So I got an email from the client saying that in order to run the script we have to append the file extension to php4 but here I read that you use Earthlink and you got it to work with php5.

When I use PHP4 it does indeed send the email but goes to the formmail page and is blank (white page no source)
When I use PHP5 it gives a 500 error.
so back to php4 and still NOT REDIRECTING to the thankyou page.

anyone?

Lorenzo 816

'God saves but Buddha makes incremental backups'

User login