Ticket #18521: wp_18521.patch
File wp_18521.patch, 2.0 KB (added by , 14 years ago) |
---|
-
D:/web/wp_official/wp-includes/class-phpmailer.php
654 654 ini_set('sendmail_from', $this->Sender); 655 655 if ($this->SingleTo === true && count($toArr) > 1) { 656 656 foreach ($toArr as $key => $val) { 657 $rt = @mail($val, $this-> EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);657 $rt = @mail($val, $this->Subject, $body, $header, $params); 658 658 // implement call back function if it exists 659 659 $isSent = ($rt == 1) ? 1 : 0; 660 660 $this->doCallback($isSent,$val,$this->cc,$this->bcc,$this->Subject,$body); 661 661 } 662 662 } else { 663 $rt = @mail($to, $this-> EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);663 $rt = @mail($to, $this->Subject, $body, $header, $params); 664 664 // implement call back function if it exists 665 665 $isSent = ($rt == 1) ? 1 : 0; 666 666 $this->doCallback($isSent,$to,$this->cc,$this->bcc,$this->Subject,$body); … … 668 668 } else { 669 669 if ($this->SingleTo === true && count($toArr) > 1) { 670 670 foreach ($toArr as $key => $val) { 671 $rt = @mail($val, $this-> EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);671 $rt = @mail($val, $this->Subject, $body, $header, $params); 672 672 // implement call back function if it exists 673 673 $isSent = ($rt == 1) ? 1 : 0; 674 674 $this->doCallback($isSent,$val,$this->cc,$this->bcc,$this->Subject,$body); 675 675 } 676 676 } else { 677 $rt = @mail($to, $this-> EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);677 $rt = @mail($to, $this->Subject, $body, $header); 678 678 // implement call back function if it exists 679 679 $isSent = ($rt == 1) ? 1 : 0; 680 680 $this->doCallback($isSent,$to,$this->cc,$this->bcc,$this->Subject,$body);