PHP mail()为回复添加不同的地址并全部回复

I have a php mailing list in which, when someone sends an email to group email, it gets sent to all members of that group. So when James sends email to groupemail@tes.com, It gets sent to all members of group, i want members to be able to reply to James only by clicking "reply" in their email client or reply to group email by clicking "reply all" in their client. Please suggest how this can be done. IF i set group email in Cc header, the email gets sent to recipient twice, once from cc and once from reply-to. The code for header that I have right now is:

$headers = 'From: '. $senderName .' <'.$senderEmail.'>'."
";
$headers .= 'Reply-To: '. $senderName .' <'.$senderEmail.'>'."
";
$headers .= 'Cc: '.$groupTitle .' <'.$groupEmail.'>'."
";
$headers .= 'X-Mailer: PHP' . phpversion() . "
";
$headers .= 'MIME-Version: 1.0'."
";

You can make your group distribution service the way it redirects messages so that one won't get the message from the group address if he is in the To-list. Unfortunately, this is how email clients work, so you can't change something anout it using the way you send mails.

You can store reply all data in a array. In header portion of reply-to run a for loop to execute that data. Just formatting like single email address.