Skip to content

Commit

Permalink
fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sazanov committed Aug 15, 2023
1 parent 4214148 commit a1d61c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function getBody(TextPart $part): bool|string|null
if ($part->getEncoding() === 'quoted-printable') {
return imap_qprint($body);
} elseif ($part->getEncoding() === 'base64') {
return base64_decode($body);
return imap_base64($body);
} else {
return $body;
}
Expand Down

0 comments on commit a1d61c4

Please sign in to comment.