Web Hosting Talk







View Full Version : php mail problem


scriptstalk
09-02-2002, 01:38 PM
Hi,

my mail program is not running

this is my test

<?php
$recipient = "xxxx@xxxx.com";
$subject= "hi";
$message="hi";
$headers="hi\r\n";

mail($recipient, $subject, $message,"From:info@xxxx.com",$headers);


?>

what is the issue here. I gues the problem with php.ini


thansk

scriptstalk
09-02-2002, 01:41 PM
in the apache log I am getting following error when I call
mail function.



: sh: -t: command not found


thanks

LadyHawk
09-02-2002, 02:16 PM
<?php
$recipient = "xxxx@xxxx.com";
$subject= "hi";
$message="hi";
$headers="From: info@xxxx.com";

mail($recipient, $subject, $message, $headers);


?>