php email - $to multiple recipients
<p>Even this must have been be asked many times, I will ask again since I cannot get it to work.</p>

<p>I am using php <code>mail($to, $subject, $message, "From: $mysite&lt;$myemail&gt;\nX-Mailer:PHP/" .phpversion());</code> to send email to a single recipient.</p>

<p>Now I need to sent it to more than one recipients. I know that normaly I could do:</p>

<pre><code>$to = "emailA@here.com,emailB@there.com";
</code></pre>

<p>But I need the one of the recipients to be the user that fills in the form e.g.:</p>

<pre><code>//get all form details
$email = $_POST['email'];

$to = "$email,emailB@there.com";
</code></pre>

<p>The above ($to) I don't know if it is correct or not but is not working for me...</p>

<p>If I leave only the <code>$to = "$email";</code> it gets send to $email <strong>(meaning that my rest of the code is ok)</strong>.</p>

<p>Any suggestion on what is or may be wrong here?</p>

<p>Thank you.</p>
