title: How to add custom header to PHP mail?
body: <p>I have a mail function with the standard parameters:</p>
  
  <pre><code>mail($to, $subject, $message, $headers);
  </code></pre>
  
  <p>Where:</p>
  
  <pre><code>$headers = "From: admin@mysite.org";
  $headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\""; 
  </code></pre>
  
  <p>Now, I'm trying to get the sent e-mails to show 'My Site' as the sender instead of 'admin@mysite.org' but if someone responds to the mail it still needs to go to admin@mysite.org.</p>
  
  <p>I've tried putting "My Site" in the "From" field before and after the e-mail address but it just appends to the address. I've tried appending it to the $headers variable but that messes the whole e-mail up. I've also tried adding it this way:</p>
  
  <pre><code>$headers .= "\r\nMy Site";
  </code></pre>
  
  <p>but that doesn't seem to do anything.</p>
  
  <p>I know this can't be complicated as I've seen it done a hundred times, but I can't seem to find a straight-forward answer for this - how do I 'mask' the admin e-mail with the site name but still keep it as the address any response goes to?</p>