Change Woocommerce New Order reply-to address to customer

A client wanted to be able to easily contact customers through the New Order admin notification in Woocommerce by simply replying to that notification. The default reply-to is the store owner’s email, so we needed a way to make it appear as if it came from the customer.

new-order-email-receipent

After trying and failing a handful of solutions, including routing email through Mandrill, I came across a plugin by Peter Hartree:

WooCommerce New Order Email Notification from Customer.

Yes it works. Yes it was the easiest $12 fix ever.

10 Comments


I need this plugin…how can I get it?

Reply

I need this too. I can\’t believe Woo doesn\’t have this function built it.

Reply

Hi Bryan, I don\’t see any twitter reply from him. I need this plugin now. Do you think you can send a copy to me and I will ping him to get his paypal account and pay him later? Let me know. Thanks.

Reply

In case any of you are still looking for a solution to this, I managed to create my own plugin using the code below. Just create a new folder in the Plugins directory and add one php file with the same name as the folder you created. Then insert this code:

<?php
   /*
   Plugin Name: GroupBooked Reply to Customer
   */
   
//This plugin adds a "reply-to" on New Order Emails so that the customer can be replied to directly

add_filter( \'woocommerce_email_headers\', \'mycustom_headers_filter_function\', 10, 3);

function mycustom_headers_filter_function( $headers, $object, $order ) {
    if ($object == \'new_order\') {
        $headers .= \'Reply-to: \'.$order->billing_first_name.\' \'.$order->billing_last_name.\' <\'.$order->billing_email.\'>\' . "rn";
    }

    return $headers;
}

?>
Reply

I have to say, its a great idea – but from having the plugin not be available at the original location to now having it placed o the Sellfy platform, through which the PayPal process for me did NOT work, is a bit of a fail. Why not publish through the Envato marketplace?

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Tell us about your project.

We'd love to hear what you're working on.

Work with us

Hi. We are Spigot. Telemarketers pronounce it Spy-got.

We are a Park City, Utah based web design shop that excels at building custom websites powered by WordPress and WooCommerce. We love content - content strategy, content curation, content soup...????Have a look around the site. As you browse you'll find useful navigation links in the sidebar on the left. We hope you find them useful anyway... Please let us know what you think, shoot us a message here.