Title: adding new order email recipient
Last modified: January 23, 2017

---

# adding new order email recipient

 *  [dhouzer](https://wordpress.org/support/users/dhouzer/)
 * (@dhouzer)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/adding-new-order-email-recipient/)
 * Hey there,
    i am using Woocommerce with DIVI Theme and everything works fine,
   without one little thing.
 * After the user ordered he will get an email (new order) and also the admin of
   the system gets an email. But the user have the opportunity to choose a service
   stuff at the cash register screen. After completing the order the user will get
   an email, but i want that the choosen service stuff and not the admin get the
   second eMail. I have a child theme function.php with this code:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
       }
   
       // Hook in
       add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
   
       // Our hooked in function - $fields is passed via the filter!
       function custom_override_checkout_fields( $fields ) {
            $fields['billing']['billing_adm'] = array(
           'label'     => __('Außendienstmitarbeiter', 'woocommerce'),
           'required'  => true,
       	'type' 		=> select,
       	'options'   => array('' => '', 'dhouzer@freenet.de' => 'DHouzer', 'mh@acd-communication.de' => 'Mark'),
           'class'     => array('form-row-wide'),
           'clear'     => true
   
            );
       	      return $fields;
   
       }
   
   
       // Change new order email recipient for registered customers
       function wc_change_admin_new_order_email_recipient( $recipient, $order ) {
           global $woocommerce;
   
           	$recipient = $fields['billing']['billing_adm'];
       		echo $recipient;
   
           return $recipient;
       }
       add_filter('woocommerce_email_recipient_new_order', 'wc_change_admin_new_order_email_recipient', 1, 2);	
       ```
   
 * Maybe someone can help me, something is wrong with the variable, because when
   i use this:
    $recipient = “blablabla@gmx.com”
 * the mail goes to [blablabla@gmx.com](https://wordpress.org/support/topic/adding-new-order-email-recipient/blablabla@gmx.com?output_format=md).
   
   Have a nice day.
 * ![Here you can see](https://i0.wp.com/www.acd-kundenserver.de/ACD/ADM_problem.
   jpg)

The topic ‘adding new order email recipient’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dhouzer](https://wordpress.org/support/users/dhouzer/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/adding-new-order-email-recipient/)
 * Status: not resolved