Merge pull request #11750 from nishitlangaliya/master

Fixed Issue #11630
This commit is contained in:
Mike Jolley 2016-08-23 10:34:53 +01:00 committed by GitHub
commit cdc9fae5a3
1 changed files with 6 additions and 1 deletions

View File

@ -278,7 +278,12 @@ 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 );
}
/**