Title: Recipient
Last modified: August 30, 2016

---

# Recipient

 *  Resolved [advss](https://wordpress.org/support/users/advss/)
 * (@advss)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/)
 * I want to ask about the recipients. In the woocommerce custom email settings 
   page there are recipient box that has to be filled, so i can only send an email
   for a certain email address. The problem is i want the email to be sent to customers
   email address automatically after i change a certain order status, is there anything
   i can do?
 * Btw awesome plugin!! Very Helpful
 * Best Regards,
 * [https://wordpress.org/plugins/woo-custom-emails/](https://wordpress.org/plugins/woo-custom-emails/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Mehul Kaklotar](https://wordpress.org/support/users/mehulkaklotar/)
 * (@mehulkaklotar)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449103)
 * Hello,
 * We appreciate your suggestion on customer email and we have added it our next
   hot release [#5](https://github.com/mehulkaklotar/woo-custom-emails/issues/5).
 * Thanks.
 *  [Tony Hayes](https://wordpress.org/support/users/majick/)
 * (@majick)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449232)
 * thanks guys! I was working on exactly the same thing, luckily I checked the github
   and noticed it was already on there, tested it and it works… shaved a few hours*
   back* onto my life – and that doesn’t happen often. 🙂
 * I submitted a pull request for adding some needed stripslashes as my contribution.
 *  [Tony Hayes](https://wordpress.org/support/users/majick/)
 * (@majick)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449236)
 * …plus another thought, if the recipient field is no longer used when the customer
   box is checked, then you could add another checkbox option to send a BCC copy
   to the recipient field so the admin can see and monitor the results of the actual
   emails sent, while not revealing their email to the customer…
 * something like this?
 *     ```
       add_filter( 'woocommerce_email_headers', 'custom_add_bcc_to_email', 10, 3);
       function custom_add_bcc_to_email( $headers, $email_id, $order ) {
   
       	$wcemails = get_option( 'wcemails_email_details', array() );
       	if ( ! empty( $wcemails ) ) {
       		foreach ( $wcemails as $wcemail ) {
       			if ($wcemail['bcctorecipent'] == '1') {
       				$wcemailids[] = $wcemail['id'];
       				$recipients[$wcemail['id']] = $wcemail['recipients'];
       			}
       		}
       	}
   
       	if (in_array($email_id,$wcemailids)) {
       		$headers[0] = 'Bcc: '.$recipients[$email_id];
       	}
       	return $headers;
       }
       ```
   
 * it does work I have changed it slightly from what I was using so may need to 
   be tested again tho…
 *  [Tony Hayes](https://wordpress.org/support/users/majick/)
 * (@majick)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449259)
 * what needs to be tested further here may be whether it is better to add to or
   replace the existing headers, and whether the text/html line may be needed if
   replacing them like this. eg.
 * `$headers[1] = 'Content-Type: text/html';`
 *  Plugin Contributor [Utkarsh](https://wordpress.org/support/users/utkarshpatel/)
 * (@utkarshpatel)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449301)
 * Hey,
    Thank you for giving suggestion. You can track your suggestion [here](https://github.com/mehulkaklotar/woo-custom-emails/issues/7).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Recipient’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-custom-emails_90cfea.svg)
 * [Woo Custom Emails](https://wordpress.org/plugins/woo-custom-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-custom-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-custom-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-custom-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-custom-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-custom-emails/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [email](https://wordpress.org/support/topic-tag/email/)
 * [recipient](https://wordpress.org/support/topic-tag/recipient/)

 * 5 replies
 * 4 participants
 * Last reply from: [Utkarsh](https://wordpress.org/support/users/utkarshpatel/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/recipient/#post-6449301)
 * Status: resolved