Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Sender's Email in WooCommerce?

WooCommerce -> Settings -> EmailS -> the first two options, "FROM: Name, FROM: Email", are the Sender's email and name. When an order is placed a notification email is sent to both Shop Manager and Customer from the same Sender's email and name (which we set from admin dashboard).

When Customer replies to that email, he basically replies to Shop Manager and it works fine.

But Shop Manager receives the notification email from his (given) email address, in actually there would be client's email.

P.S: I want that Shop Manager gets the email from the customer's billing email and customer gets it from Shop Manager's given email.

https://wordpress.org/plugins/woocommerce/

like image 758
Sohaib Avatar asked Dec 06 '25 02:12

Sohaib


1 Answers

The only way I can think of to achieve this is to programmatically generate the Shop Manager notification email using one of the system action hooks. Since there is only one field in the "from" settings, it will be used (by default) for all the outbound messages.

That said, check out the Code Snippets plugin at https://wordpress.org/plugins/code-snippets/. You can put some code here (and it will be saved to the DB, and included the system code at runtime) that could generate this programmatic email when, say, a new order is generated.

Hope it helps.

like image 62
Dave Horan Avatar answered Dec 08 '25 23:12

Dave Horan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!