Add dos2unix to the Sendmail command for PHP >= 8.0
Set:
sendmail_path='/usr/bin/dos2unix -u|/usr/sbin/sendmail -t -i'
Or check:
mail.mixed_lf_and_crlf = on
Edited by Chris Croome
Set:
sendmail_path='/usr/bin/dos2unix -u|/usr/sbin/sendmail -t -i'
Or check:
mail.mixed_lf_and_crlf = on