New order email only sends when order cancelled
-
Hello,
I’m encountering a strange error with emails for new orders. When a new order is created in my store, the new order email is not sent to our orders email address or to the customer. After reading quite a few articles on possible solutions, I installed Post SMTP for more robust email and email logging. After a few test orders, I’ve notice that no emails are logged or received when a new order is made on the store. But when I cancel the order, that’s when 3 emails are sent: one new order email to our orders email address, one new order email to the customer and one cancelled order email to our orders email address. I’m wondering if anyone else has encountered this issue.
The other thing I’ve implemented in my functions.php child theme file is the following delayed email code: add_filter( ‘woocommerce_defer_transactional_emails’, ‘__return_true’ );
This is to delay transactional emails because when customers were checking out, checkout was not working and the spinner kept spinning. This code solved the issue. I was not receiving new order emails prior to this either.Any help would be appreciated. Thanks.
- The topic ‘New order email only sends when order cancelled’ is closed to new replies.