title: PHP mail() function on windows uses From: header as MAIL FROM value
body: <p>It seems that when I use the code similar to:</p>
  
  <pre><code>$name = "Some Name";
  $account = "account@domain.com";
  
  $headers = "From: " . $name . " &lt;" . $account . "&gt;\n";
  
  mail($sometarget, $somesubject, $somedata, $headers,
      "-f" . $account);
  </code></pre>
  
  <p>to send e-mails, mail() function on windows is using "From:" header value (here: "Some Name ") instead of value forced by "-f" parameter (here: "account@domain.com") effectively ignoring this parameter. This causes problems on some e-mail servers.</p>
  
  <p>Any ideas how to change this behaviour? Thanks in advance.</p>