Use "messaged/php-mime-mail-parser" instead of PEAR Mail.
Debug mail headers.