It sounds like the new order through woocommerce has no body/content, and your server is rejecting it.
If you enable Debug PHP LogLevel in Postman’s advanced tab, and capture the output to a log file using the Debug plugin, we can make sure it’s not a bug in Postman.
Hi Jason,
I have done this and downloaded the debug file.
I also set for the an debug email notification to be sent which did not send until I turned the PHP LogLevel to off.
What am I looking for in this file/how shall I forward this on to you?
It won’t log anything if you turn if off, you have to set it to debug or trace.
In the Debug settings, make sure to enable WP_DEBUG_LOG. That will create the log file debug.log. Then try your woocommerce test and send me the debug.log here.
Thank you – I have just sent the debug log
Thanks for the log. I see the problem. This email specifies a multipart/alternative content-type header, but its contents are plain text/html.
[16-Nov-2015 13:13:28 UTC] TRACE PostmanWpMail: wp_mail parameters before applying WordPress wp_mail filter:
[16-Nov-2015 13:13:28 UTC] TRACE PostmanWpMail: headers:
[16-Nov-2015 13:13:28 UTC] TRACE PostmanWpMail: Content-Type: multipart/alternative
[16-Nov-2015 13:13:28 UTC] TRACE PostmanWpMail: message:
[16-Nov-2015 13:13:28 UTC] TRACE PostmanWpMail: <!DOCTYPE html>
<html dir="ltr">
I’m not familiar with how your site was built – is there a special plugin or code that generates this email for you? This isn’t the normal behaviour from Woocommerce.
You need to change the content-type to text/html.
Fantastic. All is now fixed! So simple.
Thank you so much!
What was the fix? Im having the same issue and am using Postman and Woocommerce but emails from woo commerce aren’t sending. Postman log shows the emails but with a status of “no body specified” and I don’t see a way to change the content type to text/html
Hi Jason, having the same trouble as the users above. Have set up the interface with SendGrid and the API in hopes it would allow emails from WooCommerce to send to customers and no success. I have downloaded the debug results. Where does one specify the body in the email so it will transmit?