Title: COD orders not triggering emails
Last modified: August 22, 2016

---

# COD orders not triggering emails

 *  [techmichelle](https://wordpress.org/support/users/techmichelle/)
 * (@techmichelle)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cod-orders-not-triggering-emails/)
 * COD orders not triggering New Order emails
 * To change Cash on Delivery orders from pending to completed
    class-wc-gateway-
   cod.php line 206 update line from processing to completed. // $order->update_status(‘
   processing’, __( ‘Payment to be made upon delivery.’, ‘woocommerce’ ) );
 *  $order->update_status( ‘completed’, __( ‘Payment to be made upon delivery.’,‘
   woocommerce’ ) );
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [techmichelle](https://wordpress.org/support/users/techmichelle/)
 * (@techmichelle)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cod-orders-not-triggering-emails/#post-5638386)
 * Note to have email sent to customer, do not comment out ‘processing’ and just
   add line ‘completed’
 * $order->update_status( ‘processing’, __( ‘Payment to be made upon delivery.’,‘
   woocommerce’ ) );
    $order->update_status( ‘completed’, __( ‘Payment to be made
   upon delivery.’, ‘woocommerce’ ) );

Viewing 1 replies (of 1 total)

The topic ‘COD orders not triggering emails’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [techmichelle](https://wordpress.org/support/users/techmichelle/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/cod-orders-not-triggering-emails/#post-5638386)
 * Status: not resolved