I'm using latest PHP 8.1 alpine image with the following sendmail version:
/magento # sendmail --help
BusyBox v1.34.1 (2022-07-19 20:11:24 UTC) multi-call binary.
The mail function sends headers and body with \r\n line delimiters according to standards and passes this data to sendmail. But sendmail converts all line-endings to \r\r\n making the whole mail broken.
A related issue in the PHP repo: php/php-src#8086 (closed as PHP does everything correctly).
I'm using latest PHP 8.1 alpine image with the following sendmail version:
The mail function sends headers and body with \r\n line delimiters according to standards and passes this data to sendmail. But sendmail converts all line-endings to \r\r\n making the whole mail broken.
A related issue in the PHP repo: php/php-src#8086 (closed as PHP does everything correctly).