I meant
$from .= "\n"; // - backslash! not line of a fraction - "/"
But it is strange....
I tried this code:
<?
$send = "petr@blueweb.cz";
$subject = "test";
$message = "test/text";
$from = "test@blueweb.cz";
mail ($send, $subject, $message, "From: $from");
?>
and it works...
Doesn't matter what kind of arguments of mail() function I used...
mail ($send, $subject, $message, "From: $from");
or
mail ($send, $subject, $message, "From: $from\n");
both worked...
But I read about the error... Function mail() never connects to any file (you wrote about "filename") but to a mail server. Do you have installed it (if you try this piece of code on your local machine)? Or do you try it online?
Or - are the values of all variables OK? Isn't there any suspect?