If in a terminal run /opt/lamp/bin/php mail.php the result is OK
but from web browser: localhost/devel/newsite/mail.php the result is FAIL
What happen here?
<?php
$to="to some mailbox in the world";
$subject="Test ONE";
$message="Testing testing";
$from = "mipc@yo.com";
$headers = "From: ".$from;
if (mail($to,$subject,$message,$headers)) {
echo "OK";
} else {
echo "FAIL";
}
?>