Title: Cannot checkout + e-mails not sent
Last modified: February 1, 2021

---

# Cannot checkout + e-mails not sent

 *  Resolved [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/)
 * Hi,
 * Since a week ago we are getting an error box when checking out but it is empty.
   
   The order is being added to the backend, so it is placed. But the customer doesn’t
   know, also because the transactional e-mails are not send to the customer nor
   to the administrator. Could it be a timeout error or something like that?
 * Hope to hear from you soon 🙂
 * Best regards,
    Olga

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-13987214)
 * PS. I tried the code below, this is bringing the customer to the “thank you” 
   page, but it doesn’t send any e-mails.
 * `add_filter( 'woocommerce_defer_transactional_emails', '__return_true' );`
 * We are using “custom orderstatus” as a plugin, maybe that is causing an error?
 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-13989262)
 * Hi [@oberning](https://wordpress.org/support/users/oberning/) –
 * I believe these two issues may be unrelated.
 * For the emails, it sounds like your emails may be getting blocked. To begin to
   troubleshoot this, I would recommend you install the (free) [WP Mail Logging plugin](https://en-gb.wordpress.org/plugins/wp-mail-logging/).
   This plugin will log all outgoing mails so you can see what is actually being
   sent.
 * It’s pretty common for emails to get rejected by email providers when the email
   is generated by _localhost_, which is what WordPress does by default. To remedy
   this issue, you’ll need to set up an SMTP email plugin to send mail for you. 
   The free plugin [WP SMTP](https://wordpress.org/plugins/wp-mail-smtp/) is a good
   option for that.
 * If that doesn’t help resolve the issue, pease have a look at our [Email FAQ page here](https://docs.woocommerce.com/document/email-faq/)
   for some of the most common reasons why emails do not send and how to correct
   them. You can also reach back out to us for assistance, of course. 🙂
 * > Since a week ago we are getting an error box when checking out but it is empty.
 * Can you tell us a bit more about what you are seeing here? A screenshot would
   be helpful as well. Thanks!
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-13990401)
 * Hi [@m155y5](https://wordpress.org/support/users/m155y5/)
 * Thank you for your reply. We are already using a SMTP provider, Send in Blue.
   I just send a test email which was send. But I will try the WP Mail logging and
   I will continue this topic at the plugin, thank you 🙂
 * For the error, I am just getting an empty error box. See the screenshot below:
 * [https://www.fosamsterdam.nl/wp-content/uploads/Error-Console.png](https://www.fosamsterdam.nl/wp-content/uploads/Error-Console.png)
 * I added the console to give more information.
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-13990485)
 * I also checked the WooCommerce log.
    These are the fatal errors that happened
   today.
 * [https://www.fosamsterdam.nl/wp-content/uploads/Fatal-errors-2-februari.png](https://www.fosamsterdam.nl/wp-content/uploads/Fatal-errors-2-februari.png)
 * I may just delete some of these rows without complications?
 *  Thread Starter [oberning](https://wordpress.org/support/users/oberning/)
 * (@oberning)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-13990621)
 * It’s solved!
 * I made a mistake in getting the billing_company. (I wrote get_formatted_billing_company
   where it should be get_billing_company)
    All is working fine now 🙂
 * Although, I have a a question about the other errors that I am getting in the
   log. Should I try to solve them to make my website cleaner and faster?
 * Best,
    Olga
 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-14008136)
 * Hhi [@oberning](https://wordpress.org/support/users/oberning/) –
 * Thank you for the update! That’s great news. 🙂
 * >Although, I have a a question about the other errors that I am getting in the
   log. Should I try to solve them to make my website cleaner and faster?
 * We can try to help you with those. I’m going to go ahead and mark this particular
   thread as resolved. Would you mind opening a new thread for your question on 
   the logs, so it’s more easily searchable by future folks with similar issues?
 * Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cannot checkout + e-mails not sent’ 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/)

## Tags

 * [Checkout error](https://wordpress.org/support/topic-tag/checkout-error/)
 * [Transactional Emails](https://wordpress.org/support/topic-tag/transactional-emails/)

 * 6 replies
 * 2 participants
 * Last reply from: [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/cannot-checkout-e-mails-not-sent/#post-14008136)
 * Status: resolved