I want to send email reply to multiple email addresses. Actually there are more then one admins and i want that all of these should receive email reply. Right now i am using this
$headers .= "Reply-To: ". [email protected] . "\r\n";
It is working fine for one email address but i do not know how i can implement this for multiple email addresses. Actually i have an array of email addresses that are separated with commas and i want that all of these should receive email reply. How i can implement this ? Your help will be much appreciated.
Reply All is when you respond to everyone on the thread. Other recipients will see a message you Reply All to, whether they're in the "To" or "Cc" fields.
If you have a multiple recipient list, you can separate each address with a comma, semicolon, space or by pressing the enter key. Now, compose your new message and then select the Message tab and click the Send button.
The RFC5322 says:
In either case, an optional reply-to field MAY also be included, which contains the field name "Reply-To" and a comma-separated list of one or more addresses.
So, all you need to do is implode that array of yours into a comma-separated list.
$emails = array ( "[email protected]", "[email protected]", "[email protected]");
$str = implode (",", $emails); //[email protected],[email protected],[email protected]
$headers .= "Reply-To: $str\r\n"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With