It would be helpful to find out what error messages you are getting when you run the 
script.

if(!mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: 
".$FirstName."<".$Email.">")) die("Unable to send message");
would be a good start. I'm not sure if there is a system error you could replace 
"unable to send message" with.

Robbert van Andel 



-----Original Message-----
From: bionicegg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] help please


Hello all,


    I am having problems with a script.  The script works great on one of my
sights, however, when I transferred it to another site, it does not
function.  I contacted my hosting company (both sites are on the same
server), they told me that I needed to check the script and that it has
nothing to do with them, since they ran a  test.php and it worked fine.
   Here is the script:

<?PHP

$ToEmail = "[EMAIL PROTECTED]";

$ToSubject = "Flash Contact Form";

$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage
Sent:\n$ToComments\n";

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

?>

Please if anyone knows anything about this stuff (Im a newbie to this) You
help is greatly appreciated!

Thanks in advance,
mark johnson





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to