title: Change the Return-Path in PHP mail function
body: <p>Is it possible to change the Return-Path value in emails are sending via mail() function of PHP ? </p>
  
  <p>It's value is 'www-data@mydomain.com' in emails I send in my site and it causes some problems on email delivery failed process. I want to set it to my email address.</p>
  
  <p>Here's the code I have tried:</p>
  
  <pre><code>$headers = 'MIME-Version: 1.0' . "\n";
  $headers .= "Content-type: text/html; charset=utf-8" . "\n";
  $headers .= "Return-Path: &lt;adminemail@yahoo.com&gt;"."\n";
  $headers .= "Errors-To: &lt;adminemail@yahoo.com&gt;"."\n";
  // Additional headers
  $headers .= "To: email1@yahoo.com &lt;adminemail@yahoo.com&gt;" . "\n";
  $headers .= "From: adminemail@yahoo.com &lt;adminemail@yahoo.com&gt;";
  // Mail it
  mail('email1@yahoo.com', 'test', 'salam', $headers, "f");
  </code></pre>