It is not the phpversion() thing...
I have the same error with the mail() function: worked int PHP3, upgraded to PHP4.01pl2 and now it says:
"Warning: Unknown error in d:/php3scripts/mailit.php3 on line 9".
The code is short and does not use phpversion():
<?
$message = "Demandeur :\t\t".$fname." ".$lname."\n".
"Téléphone :\t\t".$tel."\n".
"Email :\t\t".$email."\n".
"User :\t\t".$user."\n".
"Password :\t\t".$pass."\n".
"Motivation :\t".$motiv."\n";
mail("steven.van-poeck@wanadoo.com", "Requete acces Web ATn3", $message);
?>
I do not use any non US_ASCII characters, not in the body of the mail, not in the headers. What's going wrong here !?