i want to know why is this code output “No” all time
and this is php code
[php]
<?php
//$email=$_POST["mail"];
//$password=$_POST["pass"];
//settype($password,"string");
//settype($email,"string");
/*if(mb_strlen($email)==0)
{
echo "Please Check E-mail Field";
}
else if(!filter_var($email, FILTER_VALIDATE_EMAIL))
{
echo "Submitted address is faulty";
}
else if(mb_strlen($password)<6)
{
echo "Please Check The Password Field";
}
else
{*/
//echo $email;
$to = '
[email protected]';
$subject = 'Activation E-mail';
$message = "Activation code : ";
$headers = "From:
[email protected]\nX-Mailer: Admin";
if(mail($to, $subject, $message, $headers))echo "ok\n";else echo "no\n";
//echo "An activation mail will be sent to you after revising your account\n";
//}
?>
[/php]