[php-src] Issue #8086: Mail() function not working correctly in PHP 8.x
| From: | csandanov | Date: | Mon, 04 Apr 2022 00:54:06 +0000 |
| Subject: | [php-src] Issue #8086: Mail() function not working correctly in PHP 8.x | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240651@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8086
Comment Author: csandanov
I stumbled upon [the same
issue](https://stackoverflow.com/questions/71706100/phps-mail-relay-via-opensmtpd-returns-error-message-is-not-rfc-2822-compliant)
recently.
The solution with
dos2unix by @hansherlighed fixed it for me, thank you!
This issue happens both with busybox's and ssmtp's sendmail except with busybox's
(unless you add verbosity) you will get this weird error sendmail: . failed when in
fact it's the same RFC 2822 compliance error.
I don't know which SMTP server the OP used but I used OpenSMTPD, so possibly related https://github.com/OpenSMTPD/OpenSMTPD/issues/1135