Ticket #14888: wp-phpmailer.diff
File wp-phpmailer.diff, 851 bytes (added by , 14 years ago) |
---|
-
(a) a/wp-includes/class-phpmailer.php.orig vs. (b) b/wp-includes/class-phpmailer.php
a b 518 518 return false; 519 519 } 520 520 521 $smtp_from = ($this->Sender == '') ? $this->From : $this->Sender; 522 if(!$this->smtp->Mail($smtp_from)) { 521 if(!$this->smtp->Mail($this->Sender)) { 523 522 $error = $this->Lang('from_failed') . $smtp_from; 524 523 $this->SetError($error); 525 524 $this->smtp->Reset(); … … 865 864 866 865 $result .= $this->HeaderLine('Date', $this->RFCDate()); 867 866 if($this->Sender == '') { 868 $result .= $this->HeaderLine('Return-Path', trim($this->From)); 869 } else { 870 $result .= $this->HeaderLine('Return-Path', trim($this->Sender)); 867 $this->Sender = trim($this->From); 871 868 } 872 869 873 870 /* To be created automatically by mail() */