hi, on my Apache 2.0 and PHP version 4.2.3, i use the mail funtion to send mail (obviously) but i just can't get it to work, it returns true but a warning message comes up and the mail isn't sent!! plz help....
here is the code...
<%php
$from = "me@mail.com" ;
$to = "you@mail.com";
/* but i put a proper email address is the actual code*/
$subject = "hello";
$body = "testing 1 2 3";
$result = mail($to, $subject, $body, $from);
if ($result = true) {
echo "YES";
}else{
echo "no";
}
?>
and here is the error message:
Warning: Failed to Receive in C:\apache\apache\htdocs\emailValidation.php on line 12