title: Problems with more than four variables in mail() - PHP
body: <p>I am trying to build a form which submit a copy to the form owner and the user. However
  when I try to insert a fifth variable into mail() it seems as if the last of the variables  stops working:</p>
  
  <pre><code>if( empty($errors))
  {
      $to = $email_address; //user email
      $email_subject = "Some text";
      $email_body = "more text"; 
      $from = "From: $myemail \n"; //form owner email
      $headers = "Bcc:" . $myemail;
  
      mail($to,$email_subject,$email_body,$from,$headers);
  
      header("Location: $where");
  }
  </code></pre>
  
  <p>Leaving out $from I get a copy of the mail sent to both user and form owner, however no possibility to control the "from"-field of the email - leaving out $header the form owner don't receive a copy. If possible I like both.</p>
  
  <p>I apologize in advance for the simplicity of my question - everything I know about php (and web dev in general) I've picked up from clever guys on fora such as this.</p>
  
  <p>Regards </p>