Title: Woocommerce Emails
Last modified: August 21, 2016

---

# Woocommerce Emails

 *  Resolved [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/)
 * Woocommerce plugin does not send emails to admin or to customer.
    It does not
   send emails about new order(payment in cash) or another events. Default wordpress
   email functions are working(send me email about new user or received password).
 * What I do wrong?
 * [http://wordpress.org/plugins/woocommerce/](http://wordpress.org/plugins/woocommerce/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/woocommerce-emails-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/woocommerce-emails-1/page/2/?output_format=md)

 *  [Roy Ho](https://wordpress.org/support/users/splashingpixelscom/)
 * (@splashingpixelscom)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107685)
 * Try this plugin -> [http://wordpress.org/plugins/wp-mail-smtp/](http://wordpress.org/plugins/wp-mail-smtp/)
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107873)
 * This plugin is installed and work perfectly. But woocommerce does not send emails(((
 *  [Marcoscavd](https://wordpress.org/support/users/marcoscavd/)
 * (@marcoscavd)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107906)
 * Oi estou com o mesmo problema no woocommerce.
    alguma solução?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107907)
 * These are English language forums, so please use English. Alternatively, use 
   a [WP support forum in your language](http://codex.wordpress.org/WordPress_in_Your_Language).
 *  [Marcoscavd](https://wordpress.org/support/users/marcoscavd/)
 * (@marcoscavd)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107908)
 * Hi I am having the same problem not WooCommerce.
    any solution?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107909)
 * **[@marcoscavd](https://wordpress.org/support/users/marcoscavd/)**: As per the
   [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post), please
   [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107914)
 * I think I’ll have to write yourself a function call to send letters
 *  [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107926)
 * I have the same problem since I have updated from 2.0.13 to 2.0.14. There is 
   something that has broken the sending emails in woocommerce. I have tried with
   de wp mail smtp as well…
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107964)
 * Standart woocommerce function of sending email working well( i just call it in
   HEADER). I think there are no call of the function in woocommerce on all events
 *  [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107971)
 * I don’t know what have happened but I am thinking in downgrade to 2.0.13…
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107972)
 * Did you do it?
 *  [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107996)
 * I did it but still not working…
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4107999)
 * OH !!! I think I’ll have to write yourself a function call to send letters
 *  [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4108003)
 * I don’t understand why have happened that… If you find a solution tell me, please…
 *  Thread Starter [omcg33](https://wordpress.org/support/users/omcg33/)
 * (@omcg33)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/#post-4108044)
 * I found a custom solution.
 * I just find class-wc-gateway-cod.php in /plugin/woocommerce/classes/gateways 
   directory.
 * This class work this “payment in cash”.
 * When find `function process_payment`
 * And if in it you see `$order->update_status('on-hold'`
    it is mean ,that this
   function works when you get a new order.
 * old function:
 *     ```
       function process_payment ($order_id) {
       		global $woocommerce;
   
       		$order = new WC_Order( $order_id );
   
       		// Mark as on-hold (we're awaiting the cheque)
       		$order->update_status('on-hold', __( 'Payment to be made upon delivery.', 'woocommerce' ));
   
       		// Reduce stock levels
       		$order->reduce_order_stock();
   
       		// Remove cart
       		$woocommerce->cart->empty_cart();
   
       		// Return thankyou redirect
       		return array(
       			'result' 	=> 'success',
       			'redirect'	=> add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks'))))
       		);
       	}
       ```
   
 * New function:
 *     ```
       function process_payment ($order_id) {
       		global $woocommerce;
   
       		$order = new WC_Order( $order_id );
   
       		// Mark as on-hold (we're awaiting the cheque)
       		$order->update_status('on-hold', __( 'Payment to be made upon delivery.', 'woocommerce' ));
   
               $mailer = $woocommerce->mailer();
   
               $mailer->emails['WC_Email_New_Order']->trigger($order_id);
   
       		// Reduce stock levels
       		$order->reduce_order_stock();
   
       		// Remove cart
       		$woocommerce->cart->empty_cart();
   
       		// Return thankyou redirect
       		return array(
       			'result' 	=> 'success',
       			'redirect'	=> add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(woocommerce_get_page_id('thanks'))))
       		);
       	}
       ```
   
 * where ‘WC_Email_New_Order’ it is a type of email.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/woocommerce-emails-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/woocommerce-emails-1/page/2/?output_format=md)

The topic ‘Woocommerce 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/)

 * 18 replies
 * 5 participants
 * Last reply from: [omcg33](https://wordpress.org/support/users/omcg33/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-emails-1/page/2/#post-4108047)
 * Status: resolved