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 

See https://github.com/php/php-src/issues/8086

Edited by Chris Croome