Merge branch 'master' of https://github.com/nishitlangaliya/woocommerce
This commit is contained in:
commit
c7fc7cce07
|
@ -278,7 +278,11 @@ class WC_Email extends WC_Settings_API {
|
|||
* @return string
|
||||
*/
|
||||
public function get_headers() {
|
||||
return apply_filters( 'woocommerce_email_headers', "Content-Type: " . $this->get_content_type() . "\r\n", $this->id, $this->object );
|
||||
$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";
|
||||
}
|
||||
return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue