Ticket #20970: 20970.patch
File 20970.patch, 1.2 KB (added by , 12 years ago) |
---|
-
wp-includes/class-phpmailer.php
760 760 } else { 761 761 if ($this->SingleTo === true && count($toArr) > 1) { 762 762 foreach ($toArr as $key => $val) { 763 $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header , $params);763 $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header); 764 764 // implement call back function if it exists 765 765 $isSent = ($rt == 1) ? 1 : 0; 766 766 $this->doCallback($isSent, $val, $this->cc, $this->bcc, $this->Subject, $body); 767 767 } 768 768 } else { 769 $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header , $params);769 $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header); 770 770 // implement call back function if it exists 771 771 $isSent = ($rt == 1) ? 1 : 0; 772 772 $this->doCallback($isSent, $to, $this->cc, $this->bcc, $this->Subject, $body);