Get WooCommerce Mail copy on Specific Mail id

If you customized your WooCommerce WordPress mail template design and or added specific content and now want to see how exactly it going to user?
Few ways to see your website sending Mail are ?
1. Use Preview E-mails for WooCommerce
2. Do test order and see mail
3. Add few lines code and get all WooCommerce Mail copy on your specific Mail ID.

Following are some sample code by using it you able to change Mail sending header and adding your Specific mail id as BCC: you will get all Copy of Mail when-ever any WooCommerce mail sending from your website - mail either sending to customer on New order, Order status change or any notification Mail to Store administrator.

1. if you want to get a copy of all WooCommerce mail, add following code in your active theme functions.php file :

2. if you want to get a copy of Specific WooCommerce mail, use condition and set only specific email_id on which you want to receive mail copy.
For example if you want to receive Email copy of Order completed than us 'customer_completed_order'

3. If you want to get a copy of number of specific WooCommerce mail than use in_array and set all Email ID for which you want to get mail copy on your specific Email Inbox.

List of values for different Email IDs are :
New Order: new_order
Cancelled Order: cancelled_order
Customer Invoice: customer_invoice
Customer Note: customer_note
Order On hold: customer_on_hold_order
Processing Order: customer_processing_order
Refunded Order: customer_refunded_order
Failed Order: failed_order
Completed Order: customer_completed_order

New Account: customer_new_account
Reset Password: customer_reset_password