By Awan


2018-02-17 04:19:24 8 Comments

I want that email reply should be received at multiple email address. But it is not working for me. I have tried different ways but none of these working for me. I am trying this header but it is only replying to the last email address.

$to = "[email protected]"; 
$subject = "my email subject";
$message = "my email message";
$headers = array();
$headers []= "MIME-Version: 1.0\r\n";
$headers []= "Content-Type: text/html; charset=UTF-8\r\n";
$headers []= "Reply-To:  <" . $EmailAddress1 . "> <" . $EmailAddressss2 . ">" . "\r\n" ;
wp_mail($to, $subject, $message, $headers); 

I have tried without braces as well but this one is also not working

$headers []= "Reply-To: [email protected],[email protected]\r\n";

I do not have much idea about this so little guidance about this will be much appreciated. Thank you!

1 comments

@Tom J Nowell 2018-02-17 04:36:44

Unfortunately this is not possible, not because WordPress does not support it, but because email does not support it. There is no way to specify multiple Reply To: addresses in an Email. If you did, it would be stripped out by mail servers as invalid.

Instead, consider using a mailing list and use the mailing lists address as the reply to field

@Awan 2018-02-17 13:51:36

Thank you for your guidance. I will try mailing list now.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] How do I override the Message-ID header of wp_mail function?

  • 2012-05-18 09:37:51
  • James Bruce
  • 2317 View
  • 4 Score
  • 2 Answer
  • Tags:   php email wp-mail

0 Answered Questions

Problem with wp_mail()

  • 2017-05-22 10:04:49
  • Marcello
  • 109 View
  • 0 Score
  • 0 Answer
  • Tags:   posts email wp-mail

0 Answered Questions

wp_mail sending emails in triplicate

  • 2017-03-16 17:13:17
  • MikeKJ
  • 154 View
  • 0 Score
  • 0 Answer
  • Tags:   wp-mail

0 Answered Questions

Postman: wp_mail has been declared by another plugin or theme

  • 2017-03-03 08:47:35
  • abkrim
  • 606 View
  • 2 Score
  • 0 Answer
  • Tags:   wp-mail pluggable

1 Answered Questions

[SOLVED] Send Weekly Email if Users have not complete their profiles

  • 2016-10-03 08:46:26
  • Kevin Mamaqi
  • 97 View
  • 0 Score
  • 1 Answer
  • Tags:   wp-cron wp-mail

0 Answered Questions

wp_mail Not Working Correctly

1 Answered Questions

2 Answered Questions

[SOLVED] Using wp_mail in functions.php

  • 2012-10-18 12:38:08
  • zilj
  • 8744 View
  • 0 Score
  • 2 Answer
  • Tags:   wp-mail

1 Answered Questions

[SOLVED] wp_mail and BCC headers

2 Answered Questions

[SOLVED] Using wp_schedule_single_event with arguments to send email

  • 2011-04-22 00:33:02
  • tollmanz
  • 5545 View
  • 6 Score
  • 2 Answer
  • Tags:   wp-cron wp-mail

Sponsored Content