function forcesendmail ( $order_id, $old_status, $new_status ){
$order = new WC_Order($order_id);
if( $new_status == "processing" ) {
WC()->mailer()->emails['WC_Email_Customer_Processing_Order']->trigger($order_id);
}
}
add_action( 'woocommerce_order_status_changed', 'forcesendmail', 99, 3 );
add_action('woocommerce_order_status_changed', 'woo_order_status_change_custom', 10, 3);
$order = wc_get_order( $order_id );
if($order){
$order->update_status( 'pending', '', true );
}