[PHP 8.2] mail wrongly formatted
Overview
When running CiviCRM on PHP8 on Linux, email can be badly formatted.
See https://civicrm.stackexchange.com/q/45782/225 for a description, analysis and fix.
Current behaviour
Some email headers are not correctly formatted, including the Content-Type boundary specifier. The boundary is ignored and the mail is displayed wrongly.
Solution
The problem is in the Pear Mail library. A fix was committed in November for the 2.0.0 release but this has not yet been released.
Environment information
- CiviCRM: Master
- PHP: 8.2