Ticket #28039: 28039.patch
File 28039.patch, 1.8 KB (added by , 11 years ago) |
---|
-
wp-includes/class-phpmailer.php
410 410 * string $subject the subject 411 411 * string $body the email body 412 412 * string $from email address of sender 413 * 413 * 414 414 * @type string 415 415 */ 416 416 public $action_function = ''; … … 1667 1667 public function getMailMIME() 1668 1668 { 1669 1669 $result = ''; 1670 $ismultipart = true; 1670 1671 switch ($this->message_type) { 1671 1672 case 'inline': 1672 1673 $result .= $this->headerLine('Content-Type', 'multipart/related;'); … … 1687 1688 default: 1688 1689 // Catches case 'plain': and case '': 1689 1690 $result .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet); 1691 $ismultipart = false; 1690 1692 break; 1691 1693 } 1692 1694 //RFC1341 part 5 says 7bit is assumed if not specified 1693 1695 if ($this->Encoding != '7bit') { 1694 $result .= $this->headerLine('Content-Transfer-Encoding', $this->Encoding); 1696 //RFC 2045 section 6.4 says multipart MIME parts may only use 7bit, 8bit or binary CTE 1697 if ($ismultipart) { 1698 if ($this->Encoding == '8bit') { 1699 $result .= $this->headerLine('Content-Transfer-Encoding', '8bit'); 1700 } 1701 //The only remaining alternatives are quoted-printable and base64, which are both 7bit compatible 1702 } else { 1703 $result .= $this->headerLine('Content-Transfer-Encoding', $this->Encoding); 1704 } 1695 1705 } 1696 1706 1697 1707 if ($this->Mailer != 'mail') {