woocommerce new order email notification not working automatically

Mail sending not working, when i press complete icon on order from backend then it sends the order email and change the status of payment complete from pending. I am using payment gateway in test mode. Any suggestion is appreciable. please suggest.