When edit an order, admin can send an message to customer. But at, wc-settings&tab=email it's using "From" address to sent mail eg: no-repy@gmail.com and i dont want use this in "Note to Customer".
I mean, with "Note to Customer" function will use other mail like noteToCustomer@gmail.com only.
add_filter( 'woocommerce_email_headers', 'change_reply_to_email', 10, 3 );
function change_reply_to_email( $header, $email_id, $order ) {
$name = 'Pickashirt';
$email = 'noteToCustomer@gmail.com';
if( $email_id == 'customer_note' ){
$headers .= 'From: ' . $name . ' ' . "<" . $email . ">";
}
return $header;
}
Hope will get help on this. Many Thanks, Tin