Skip to content

Commit

Permalink
SendmailMailer: use CRLF endings for php >= 8.0 (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Ondřej Čech <ondrej.cech@glami.cz>
  • Loading branch information
2 people authored and dg committed Apr 16, 2021
1 parent 99e823d commit 3c80399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mail/SendmailMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function send(Message $mail): void
str_replace(Message::EOL, PHP_EOL, $mail->getEncodedHeader('To')),
str_replace(Message::EOL, PHP_EOL, $mail->getEncodedHeader('Subject')),
str_replace(Message::EOL, PHP_EOL, $parts[1]),
str_replace(Message::EOL, PHP_EOL, $parts[0]),
str_replace(Message::EOL, PHP_VERSION_ID >= 80000 ? "\r\n" : PHP_EOL, $parts[0]),
];
if ($this->commandArgs) {
$args[] = $this->commandArgs;
Expand Down

0 comments on commit 3c80399

Please sign in to comment.