• Resolved hotice83

    (@hotice83)


    Not sure what’s going on here..

    When we used to get a new order email notification it would have a reply to with the customer’s email, which was great

    Now there is no reply to field at all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @hotice83

    Thanks for reaching out!

    I am not sure I quite understand what you’re referring to here. Can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?

    If you don’t already have a screenshot service installed, you can try https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.

    Thanks!

    Thread Starter hotice83

    (@hotice83)

    Hi, I can’t really do the screenshot as it would show sensitive information.

    These are the current headers of my email

    from : has my email set as per woocomerce email settings
    to : has my email set as per woocomerce email settings
    date : has the date
    Subject : site name – New customer order (order no) – date

    This is how it was in 2022 which is how it should be
    from : has my email set as per woocomerce email settings
    to : has my email set as per woocomerce email settings
    Reply-To : has my customer’s email
    date : has the date
    Subject : site name – New customer order (order no) – date

    The “Reply-To” with the customers email is now missing

    Just to be clear, i am talking about : wc_email_new_order

    Thread Starter hotice83

    (@hotice83)

    update i have fixed this using the following code, however its still strange how it used to do this and does on all on my other websites but now does not.

    add_filter( ‘woocommerce_email_headers’, ‘custom_new_order_reply_to’, 10, 3 );
    function custom_new_order_reply_to( $headers, $id, $order ) {
    if ( $id == ‘new_order’ ) {
    if ( $order->get_billing_email() ) {
    $headers .= “Reply-To: ” . $order->get_billing_email() . “\r\n”;
    }
    }
    return $headers;
    }

    Saif

    (@babylon1999)

    Hello @hotice83,

    update i have fixed this using the following code, however its still strange how it used to do this and does on all on my other websites but now does not.

    Glad to hear you’ve figured it out. As for why it’s not working by default, then it could be because of a conflict or corruption in the plugin files.

    You can try conflict testing or deleting/re-installing WooCommerce.

    It’s also worth checking if there are any fatal error logs from WooCommerce > Status > Logs, if so then please share them with us.


    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘admin new order email – reply to not working’ is closed to new replies.