It seems that when I use the code similar to:
$name = "Some Name";
$account = "[email protected]";
$headers = "From: " . $name . " <" . $account . ">\n";
mail($sometarget, $somesubject, $somedata, $headers,
"-f" . $account);
to send e-mails, mail() function on windows is using "From:" header value (here: "Some Name ") instead of value forced by "-f" parameter (here: "[email protected]") effectively ignoring this parameter. This causes problems on some e-mail servers.
Any ideas how to change this behaviour? Thanks in advance.