Support » Plugin: WooCommerce » Woocommerce Email Issue (formatting)

  • Resolved blumietunes


    Help! As of the last week of November, my Woocommerce emails, i.e. Order Complete emails to customer and myself, no longer arrive successfully formatted as html. They’re showing as raw code. I haven’t changed anything or added anything other than updating the plugin regularly, so my guess is that something happened with this last version update. Is this just me? In an effort to fix this, I’ve updated my PHP to v. 7.1, I’ve tried switching themes, I’ve tried deactivating any plugin that has anything to do with Woocommerce, with no luck. Does anyone have a thought what may be going wrong here? Thanks in advance…

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you go to Tools -> Site Health, do you see a message about “One or more recommended modules are missing” that includes “xml”? If so, you can have the host look at my info for re-enabling it:

    If that doesn’t seem to apply, you could rule out whether it was an issue with WooCommerce or the host/WordPress by sending a test HTML email with something external to WooCommerce. WP HTML Email works for that ( or there’s probably others.

    If that doesn’t provide any clues, can you post your system report ( And ideally describe how the mail is sent (through the default mail-sending on the web server, through SMTP, etc.). Maybe I’ll spot something from that.

    Thread Starter blumietunes


    Thanks Dan!
    I ruled out your first suggestion re: xml.
    And I’ve identified that the issue is with the host/WordPress, having sent a test email from WP HTML Email which arrived as raw code.
    Can you recommend how to proceed – I realize that this is no longer a Woocommerce question…

    Are you using the host for email? If so, I’d suspect the problem is on their end rather than being anything related to your WordPress install. You could ask them to troubleshoot, but just switching to a dedicated email provider would probably solve the problem, and usually gives better deliverability rates than the usual poorly-configured host mail. And they’re usually free/cheap for low email volumes. There’s the list of them in the email FAQ, and I’m working on a more comprehensive list.

    If you’d like to distinguish between WordPress problems and host problems, you could upload a basic PHP file to your account that just calls the mail function with an HTML body / headers. If it worked correctly, you’d know the problem was on the WordPress side, and if it still failed, you’d have an easy test case for the host.

    Plugin Support Rynald0s.a11n


    Automattic Happiness Engineer


    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.


    Thread Starter blumietunes


    You were right – it was an issue on the host side. I added the plugin WP Mail SMTP with service from Sendgrid, and everything is resolved. Thanks again for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce Email Issue (formatting)’ is closed to new replies.