Multiple recipient mail php not working for second onwards addresses
<p>I have an HTML email needed to be sent to more than one person:</p>

<pre><code>$mem = "abc@def.com, qwr@rty.com";
$subject = 'Invitation to Party';
$headers = "From: info@example.com\r\n";
$headers .= "Reply-To: info@example.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "SNIPPED";
mail($mem, $subject, $message, $headers);
</code></pre>

<p>It is sending to the first email which is <code>abc@def.com</code>, but it's not sending mail for the second recipient which is <code>qwr@rty.com</code> and the rest.</p>

<p>The email addresses are examples.</p>

<p>Is there any work-around for this besides using library?</p>
