• Resolved STwebsiteuser

    (@stwebsiteuser)


    My test emails are sending with no issues but when I simulate a product order the Email log tells me the following status: no body specified.

    I have set this plug in up using an Gmail API key. I am receiving all other notifications apart from notifications of a new order through woocommerce.

    Please can you let me know where I have gone wrong.

    https://wordpress.org/plugins/postman-smtp/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    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.

    Thread Starter STwebsiteuser

    (@stwebsiteuser)

    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?

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    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.

    Thread Starter STwebsiteuser

    (@stwebsiteuser)

    Thank you – I have just sent the debug log

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    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.

    Thread Starter STwebsiteuser

    (@stwebsiteuser)

    Fantastic. All is now fixed! So simple.

    Thank you so much!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    My pleasure 🙂

    Tech4Eleven

    (@tech4eleven)

    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

    Tech4Eleven

    (@tech4eleven)

    never mind: i found it here: https://wordpress.org/support/topic/orders-from-woo-commerce-not-sent?replies=4 needed to change “emails” in woo commerce.

    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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Postman SMTP – no body specified’ is closed to new replies.