Fixes add reply-to to admin emails ref #11630

This commit is contained in:
Multidots 2016-08-23 13:09:27 +05:30
parent c7fc7cce07
commit 41d079f086
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ class WC_Email extends WC_Settings_API {
*/
public function get_headers() {
$header = "Content-Type: " . $this->get_content_type() . "\r\n";
if ( 'new_order' === $this->id ) {
$header .= "Reply-to: {$this->object->billing_first_name} {$this->object->billing_last_name} <{$this->object->billing_email}>\r\n";
}