MIME parts now contain only LF (was CRLF)

This commit is contained in:
Petr Bechyně 2016-11-29 18:53:59 +01:00
parent f57239ad0d
commit 476813e9bb
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class Part extends PartHeader
*/ */
public function getMessagePart() public function getMessagePart()
{ {
return $this->generateHeaders() . "\r\n" . $this->generateBody(); return $this->generateHeaders() . "\n" . $this->generateBody();
} }
/** /**
@ -152,7 +152,7 @@ class Part extends PartHeader
case self::ENCODING_SEVEN_BIT: case self::ENCODING_SEVEN_BIT:
case self::ENCODING_EIGHT_BIT: case self::ENCODING_EIGHT_BIT:
default: default:
return preg_replace("/\r\n|\r|\n/", "\r\n", $content); return preg_replace("/\r\n|\r|\n/", "\n", $content);
} }
} }