So, I have been trying to set up "reply-to" in the order email.
I have few ideas to do it. Here is one of them.
Following is admin option to set up "From" email address
array(
'title' => __( '"From" Email Address', 'woocommerce' ),
'desc' => '',
'id' => 'woocommerce_email_from_address',
'type' => 'email',
'custom_attributes' => array(
'multiple' => 'multiple'
),
'css' => 'min-width:300px;',
'default' => get_option( 'admin_email' ),
'autoload' => false
),
As you can see, the default value is admin_email
.
I am trying to change it to billing_email
from the order
<?php echo $order->billing_email; ?>
In this method (if works), then all the order email will be "sent" from the customer's email (billing_email
) instead of admin_email
. Therefore the recipient can reply directly to that billing_email
instead of Admin_email
.
How can I change the default
value to billing_email
?
Thanks