• Hi,

    I have seen lots of people commenting about setting the reply to email address for new order emails to the customer’s email. However I want this to be a static email address which can set/change as needed. The idea is I want team member to be able to reply to the new order email and this go to a [email protected] email address not the customers.

    How can i set this please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dave031284

    (@dave031284)

    Anyone have any ideas how to achieve this?

    Thread Starter dave031284

    (@dave031284)

    I’ve managed to get this working

    // reply to all email address

    add_filter( ‘woocommerce_email_headers’, ‘reply_email_address’, 10, 2 );

    function reply_email_address ( $headers ) {
    $headers = array(‘Reply-To: email name <[email protected]>’);

    return $headers;
    }

    but this apply s to all emails when i only want it to apply to admin new order emails. I’ve created the below but it’s not working. can someone please help

    // Change WooCommerce reply to email address for new order email only

    add_filter( ‘woocommerce_email_headers’, ‘wc_change_email_reply_address’, 10, 3 );

    function wc_change_email_reply_address ( $headers, $obj ) {
    // For Admin New Order Emails
    if ( is_a( $obj, ‘WC_Email_New_Order’ ) ) {
    $headers = array(‘Reply-To: email name <[email protected]>’);
    }

    return $headers;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the “Reply-to” email addess for New Order emails’ is closed to new replies.