Page 1 of 1

Different servers, different results

Posted: Mon Jul 15, 2002 12:23 pm
by ericwidi
I'm not a PHP guy, but I gave this tutorial a shot for a form I set up in Flash that uses PHP to e-mail the form data to me. It works on one server, but not on the other.

I tried it out on server A (PHP 4.06), which worked fine when I ran the phpinfo test. Then I uploaded my files with the PHP in action, the form data was promptly e-mailed to me.

Next I tried it on server B (4.0.3pl1), which also worked fine when I ran the phpinfo test. But when I uploaded my files and tried to submit the form data, nothing's getting e-mailed to me.

I thought that sticky post about 4.2 might help me, but it looks like both servers are running old versions. Could anyone help me through this one? I appreciate your help.

Eric

Code: Select all

<?
$ToEmail = "name@address.com";

##$ToName = "Insert Name Here";
$ToSubject = "Insert Subject Here";

$EmailBody = "Sent By: $Name\nSenders Company: $Company\nPhone Number: $Phone\n\n";


$Message = $EmailBody;

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");


Print "_root.RSVP.Status=Thanks";

?>