Skip to content

Commit a9f7518

Browse files
committed
Do not modify attachment content
Binary files do not like to have 0x0D 0x0A replaced with 0x0A
1 parent 6f9544a commit a9f7518

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/MessagePart.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public function getContentType(): string
9999

100100
public function getContent(): string
101101
{
102+
if ($this->isAttachment()) {
103+
return $this->content;
104+
}
102105
if (strtolower($this->getHeader('Content-Transfer-Encoding', '')) === 'base64') {
103106
return Utils::normaliseLineEndings(base64_decode($this->content));
104107
}

0 commit comments

Comments
 (0)