title: Send a Copy of email to Sender PHP contact script
body: <p>i am using the below PHP Script to get emails to my from my contact form. i want to send a copy of the same email to the sender email also. how can i do that... can some one add some lines to my script to do that..</p>
  
  <p>can i separate multiple emails in $emailTo like <code>$emailTo = 'owner@website.com, $email';</code></p>
  
  <pre><code>if(!isset($hasError)) {
  
      $emailFrom = 'smptcontactemail@website.com';
      $emailTo = 'owner@website.com';
      $subject = 'Submitted message from '.$name;
      $sendCopy = trim($_POST['sendCopy']);
      $body = "Name: $name \n\nEmail: $email \n\nComments: $comments";
      $headers = 'From: ' .' &lt;'.$emailFrom.'&gt;' . "\r\n" . 'Reply-To: ' . $email;
  
      mail($emailTo, $subject, $body, $headers);
  
      // set our boolean completion value to TRUE
      $emailSent = true;
  }
  </code></pre>
  
  <p>Adding another FUNCTION might work. but i am searching for some other easy way to do that in same function :)</p>
  
  <p>PS: i want to add a aditional line to sender like "your email copy of message that you sent to xxx owner"</p>